故障排除:内核总是在IPython Notebook中使用IJulia死掉 [英] Troubleshooting: Kernel always dies using IJulia in IPython notebook

查看:352
本文介绍了故障排除:内核总是在IPython Notebook中使用IJulia死掉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用julia,并且想与IPython Notebook/Jupyter一起使用.

因此,我使用MacPorts(即sudo port install julia)安装了julia.请按照此处的安装说明进行操作: https://github.com/JuliaLang/IJulia.jl

提示后,我使用"Pkg.add("IJulia")安装IJulia.

但是,我不能将Julia与IPython Notebook一起使用.用

打开笔记本后

ipython notebook --profile=julia

julia笔记本的内核立即死亡,无法重新启动.

终端上的错误显示:

[I 19:03:19.410 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel dc00ae3a-8fa6-4d01-a802-f7845a16a9ba restarted
ERROR: SHA256 not defined
 in include at /opt/local/lib/julia/sys.dylib
 in process_options at /opt/local/lib/julia/sys.dylib
 in _start at /opt/local/lib/julia/sys.dylib
while loading /Users/NAME/.julia/v0.3/IJulia/src/kernel.jl, in expression starting on line 6

我怀疑我没有正确安装IJulia?我该如何解决?

(julia的版本是julia version 0.3.11.python的版本是Python 2.7.10.ipython的版本是4.0.0.)

解决方案

Julia的当前稳定版本为v0.4.0. 您应该直接从Julia主页(.dmg)下载它:

http://julialang.org/downloads/

已完成此操作,请运行并再次执行Pkg.add("IJulia").

然后从朱莉娅之内

using IJulia
notebook()

请注意,Jupyter Notebook(以前是IPython Notebook的新名称)的运行方式为

jupyter notebook

--profile julia不再是必需的,应该将其删除.

此外,仅当您先前安装过Jupyter时,此(jupyter notebook)才有效(似乎是这种情况).在这种情况下,建议您使用conda升级(如果已安装Anaconda或使用pip.)

I recently began using julia, and I would like to use in with IPython Notebook/Jupyter.

So, I installed julia using MacPorts, i.e. sudo port install julia. Following the installation instructions here: https://github.com/JuliaLang/IJulia.jl

After the prompt, I used "Pkg.add("IJulia") to install IJulia.

However, I cannot use Julia with IPython notebook. After opening the notebook with

ipython notebook --profile=julia

the kernel for the julia notebook dies instantly and cannot be restarted.

The error on the Terminal shows:

[I 19:03:19.410 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel dc00ae3a-8fa6-4d01-a802-f7845a16a9ba restarted
ERROR: SHA256 not defined
 in include at /opt/local/lib/julia/sys.dylib
 in process_options at /opt/local/lib/julia/sys.dylib
 in _start at /opt/local/lib/julia/sys.dylib
while loading /Users/NAME/.julia/v0.3/IJulia/src/kernel.jl, in expression starting on line 6

I suspect I have installed IJulia incorrectly? How can I solve this?

(The version of julia is julia version 0.3.11. The version of python is Python 2.7.10. The version of ipython is 4.0.0.)

解决方案

The current stable version of Julia is v0.4.0. You should download it directly from the Julia homepage (.dmg):

http://julialang.org/downloads/

Having done that, run it and do Pkg.add("IJulia") again.

Then from within Julia do

using IJulia
notebook()

Note that the Jupyter Notebook (the new name for what used to be the IPython Notebook) is run as

jupyter notebook

The --profile julia is no longer necessary and should be removed.

Furthermore, this (jupyter notebook) will only work if you had a previous installation of Jupyter, which seems to be the case. In this case, I suggest you upgrade it with conda, if you installed Anaconda, or with pip.)

这篇关于故障排除:内核总是在IPython Notebook中使用IJulia死掉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆