Using JupyterLab + Java with WSL on Windows 10

I wanted to use JupyterLab + Java on Windows 10, so I tried it. Wouldn't it be nice if Java ran on Jupyter Notebook?

Installation

Jupyter installation

$ sudo pip install jupyterlab widgetsnbextension $ jupyter lab --generate-config $ cd .jupyter/ $ emacs jupyter_notebook_config.py

jupyter_notebook_config.py


# c.NotebookApp.use_redirect_file = True
c.NotebookApp.use_redirect_file = False

Install JavaKernel for Jupyter

$ git clone https://github.com/SpencerPark/IJava.git $ cd IJava/ $ ./gradlew installKernel

Run

$ jupyter lab Alternatively, create the following shortcut on Windows image.png

When you execute the shortcut, JupyterLab will start up safely on the browser. Wow wow.

image.png

Launcher will be launched on the browser, so if you select Java, it will work for the time being. However, I don't know how to read the classpath.

image.png

If you can't set ClassPath, you can't do anything. Let's check how to set ClassPath for the time being.

Click here for how to set ClassPath. https://qiita.com/toritorix/items/6f1675166223960a1e85

Recommended Posts

Using JupyterLab + Java with WSL on Windows 10
Install Java with zip on Windows
Using Docker on Windows10 Home WSL2
Specify ClassPath when using jupyter + Java with WSL
Using Java 8 with Bluemix (on Liberty Runtime & DevOps Service)
I built an Ubuntu environment on Windows 10 using WSL2.
Easily build Redmine on Windows using WSL2 and Docker
Install Java on WSL Ubuntu 18.04
Using Mapper with Java (Spring)
Deploying a Java environment with Windows Subsystem for Linux (WSL)
Using multiple versions of Java with Brew on Mac + jEnv
Using Java on OSX 10.15 (Catalina) β
[Java] How to update Java on Windows
Try using Redis with Java (jar)
Using Java with AWS Lambda-Eclipse Preparation
Html5 development with Java using TeaVM
Install Java 9 on windows 10 and CentOS 7
Develop gRPC on Windows + Java 7 + Maven 2
Using proxy service with Java crawling
Using Java with AWS Lambda-Implementation-Check CloudWatch Arguments
Using Java with AWS Lambda-Implementation-Stop / Launch EC2
Notes on operators using Java ~ String type ~
Sobel filter using OpenCV on Android (Java)
Introducing Docker Desktop for Windows on WSL2
Java version control with jenv on OSX
Notes on using FCM with Ruby on Rails
Install Java8 with Yum on Amazon Linux
Game development with two people using java 2
I tried using OpenCV with Java + Tomcat
Game development with two people using java 1
Use cljstyle with Spacemacs on Ubuntu on WSL2
GPU recognition with docker using WSL2 (August 2020)
Memory measurement of Java application on Windows
Build OpenCV with Java Wrapper on Ubuntu 18.04
Building Java Web Applications on Windows Server 2016
Modern Java environment for Windows using Chocolatey
Game development with two people using java 3
Try using the Wii remote with Java
Try using Firebase Cloud Functions on Android (Java)
Using templates on the classpath with Apache Velocity
Interact with LINE Message API using Lambda (Java)
[Android] [Java] Download images on GCS (Google Cloud Storage) with Stream using Glide
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
Easily switch Java versions with alias on macOS
Install Java 11 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Note Book: OpenCV with CUDA Install On Windows10
Install Java 14 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 8 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Using Gradle with VS Code, build Java → run
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
Try communication using gRPC on Android + Java server
Operate Docker Desktop for Windows on Linux (WSL)
[Solution] Java cannot be installed on Windows 10 + ATOK 2017
Check with Java / Kotlin that files cannot be written in UAC on Windows
A memo when building a Rails 5.2 development environment using Docker Desktop + WSL2 on Windows 10 Home
Create a Java development environment using jenv on Mac
Getting started with Java programs using Visual Studio Code
Compile with Java 6 and test with Java 11 while running Maven on Java 8
Install Java 8 (OpenJDK: Amazon Corretto) on macOS with Homebrew
Install java and maven using brew on new mac
Windows10 + WSL2 + DockerDesktop + docker-compose + GPU (Nvidia) + Jupyterlab environment construction