Jupyter 安装Java内核
Java JDK
- 首先下载最新的JavaJDK jdk>=9
- 配置环境变量
- 测试
java -version
安装jupyter java内核
先查看下jupyter 内核
1 | jupyter kernelspec list |
安装IJAVA
- 打开github上IJAVA下载页,下载最新版本,使用unzip解压,解压后的目录结构为:
1 | java |
使用Python安装
1
python install.py
Tips:
这里我使用这种方式安装出错了,
1
2
3
4
5 ijava python3 install.py
Traceback (most recent call last):
File "install.py", line 6, in <module>
from jupyter_client.kernelspec import KernelSpecManager
ModuleNotFoundError: No module named 'jupyter_client'使用以下方式安装成功:
1 jupyter kernelspec install --user java/
再次查看jupyter内核
1
jupyter kernelspec list
1
2
3Available kernels:
python3 /home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/site-packages/ipykernel/resources
java /home/xinbj/.local/share/jupyter/kernels/java重新启动jupyter-lab就可以了