在jupyter notebook中使用julia

发布时间 2023-08-22 05:57:16作者: Guanjie255

问题描述:无法使用Julia的包管理器Pkg下载jupyter notebook,因此采用Python的包管理器pip下载jupyter notebook

STEP1 在cmd中使用pip下载jupyter notebook

pip install notebook

STEP2 cmd->julia->]进入julia的pkg模式下载Julia的包IJulia

# Ijulia是Julia的一个包,包含了Julia的kernel,这个包就是给jupyter notebook使用的
add IJulia

STEP3 如果第二步因网络问题下载失败,参考以下博客

https://www.cnblogs.com/gjsun/p/17647487.html

STEP4 在cmd中输入jupyter notebook命令打开jupyter

jupyter会在默认的浏览器打开,然后在合适的地方新建一个.ipynb文件,选择julia kernel即可运行代码了