1. Ensure JDK updated to the latest version
2. Download IJava
? ? ?ijava下載地址:https://github.com/SpencerPark/IJava/releases
Unzip it into a temporary location. It should have at least the?install.py?and?java?folder extracted in there.
在install.py和java上層文件夾中打開(kāi)terminal:
# Pass the -h option to see the help page
> python3 install.py -h
# Otherwise a common install command is
> python3 install.py --sys-prefix (其實(shí)直接運(yùn)行這步)
3. Check if java-kernel loaded
>jupyter kernelspec list
如果kernel列表中有java,則ok了。
下面在jupyter notebook里面新建代碼文件時(shí),可以選用使用java kernel。