无法使用jupyterhub运行ipython-notebook 2.7 [英] Unable to run ipython-notebook 2.7 with jupyterhub

查看:481
本文介绍了无法使用jupyterhub运行ipython-notebook 2.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu 14.04上使用jupyterhub运行ipython 2.7笔记本 - 但我无法找到方法。有什么建议吗?

I am trying to run ipython 2.7 notebooks with jupyterhub on Ubuntu 14.04 - but I haven't been able to figure out a way. Any suggestions?

我知道需要在文件中添加内核〜/ .ipython / kernels.json
我在这个文件中有以下内容:

I know one needs to add kernels in the file ~/.ipython/kernels.json I have the following in this file:

{
 "argv": ["python3", "-m", "IPython.kernel",
          "-f", "{connection_file}"],
 "display_name": "Python 3",
 "language": "python"
}
{
 "argv": ["python2.7", "-m", "IPython.kernel",
      "-f", "{connection_file}"],
 "display_name": "Python 2",
 "language": "python"
}   


推荐答案

〜/ .ipython / kernels.json 不是正确的路径。并且这些文件不能手工编辑。此外,您拥有的文件无效json,如果服务器位于正确的位置,服务器将无法读取它。

~/.ipython/kernels.json is not the right path. And theses files are not ment to be edited by hand. Also the file you have is not valid json, the server will be unable to read it if it was in the right place.

使用 python2。 7 -m IPython kernelspec install-self python3 -m IPython kernelspec install-self ,用于IPython将正确的文件放在正确的位置。

use python2.7 -m IPython kernelspec install-self and python3 -m IPython kernelspec install-self for IPython to put the right files in the right locations.

话虽如此,即使内核文件错误,你也可以启动jupyterhub。您有其他错误消息吗?

That being said, even with the kernels files wrong you shoudl be able to start jupyterhub. Do you have other error messages ?

这篇关于无法使用jupyterhub运行ipython-notebook 2.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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