美文网首页
在Jupyter中使用Java

在Jupyter中使用Java

作者: Nitrobenzene | 来源:发表于2019-12-06 16:45 被阅读0次

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上层文件夹中打开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 (其实直接运行这步)

3. Check if java-kernel loaded

>jupyter kernelspec list

如果kernel列表中有java,则ok了。

下面在jupyter notebook里面新建代码文件时,可以选用使用java kernel。

相关文章

网友评论

      本文标题:在Jupyter中使用Java

      本文链接:https://www.haomeiwen.com/subject/hhuegctx.html