1
0

More than 3 years have passed since last update.

Windows10のWSLでJupyterLab+Javaを使う

Last updated at Posted at 2020-05-22

Windows10でJupyterLab+Javaを使いたかったので試してみた.
Jupyter Notebook上でJavaが動いたらなんか便利そうじゃない?

インストール

Jupyterインストール

$ 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

Jupyter用JavaKernelのインストール

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

実行

$ jupyter lab
または,Windows上で以下のようなショートカットを作成
image.png

ショートカットを実行すると,ブラウザ上にJupyterLabが無事立ち上がる.
すごいすごい.

image.png

ブラウザ上にLauncherが立ち上がるので,Javaを選べばとりあえずは動く.
しかし,classpathの読み込み方がわからん.

image.png

ClassPathが設定できなきゃ何もできないなあ.
とりあえずClassPathの設定方法を調べよう.

ClassPathの設定の仕方はこちら.
https://qiita.com/toritorix/items/6f1675166223960a1e85

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0