如何将最新的 Julia 版本添加到 Jupyter Notebook [英] How to add latest Julia version to Jupyter Notebook
问题描述
我在我的 Linux Mint 20 系统上安装了 Julia 1.5.3.我将 julia-1.5.3-linux-x86_64.tar.gz
中的 Julia 文件复制到 /opt/julia-1.5.3/
中,与文件夹 相邻>/opt/julia-1.4.1/
,(.bashrc
中的path环境变量我没有改).
I installed Julia 1.5.3 on my Linux Mint 20 system. I copied the Julia files in julia-1.5.3-linux-x86_64.tar.gz
to /opt/julia-1.5.3/
, adjacent to the folder /opt/julia-1.4.1/
, (I did not change the path environment variable in .bashrc
).
我在 Julia 控制台中运行了 Pkg.add("IJulia")
.
I ran Pkg.add("IJulia")
in the Julia console.
到目前为止一切顺利,如果我从命令提示符启动 Julia,新版本就会运行.Atom/Juno 也运行最新版本.
So far so good, the new version runs if I start Julia from the command prompt. Atom / Juno also run the latest version.
但是,如果我从 Anaconda 导航器运行 Jupyter,那么我只会看到旧版本的 Julia,请看这张图片:https://i.imgur.com/WOy62Gw.png
But, if I run Jupyter from the Anaconda navigator, then I only see the older version of Julia, see this picture: https://i.imgur.com/WOy62Gw.png
如何将 julia-1.5.3 添加到该菜单?
How can I add julia-1.5.3 to that menu?
推荐答案
你安装了运行jupyter内核的Julia包IJulia吗?如果不是这就是你所缺少的.
Have you installed IJulia, the Julia package which runs the jupyter kernel? If not that's what you're missing.
如果你已经有了,但是你更新了你的 Julia 版本并且只能看到旧的 Julia 内核,你需要 Pkg.build("IJulia")
或 ]在构建脚本注册内核时,以 pkg repl 模式构建 IJulia
.
If you've got that already but you have updated your Julia version and can only see the old Julia kernel, You need to Pkg.build("IJulia")
or ] build IJulia
in pkg repl mode as the build script registers the kernel.
这篇关于如何将最新的 Julia 版本添加到 Jupyter Notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!