Unable to run ipython-notebook 2.7 with jupyterhub

ⅰ亾dé卋堺 提交于 2019-12-13 02:03:55

问题


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?

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"
}   

回答1:


~/.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.

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.

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



来源:https://stackoverflow.com/questions/30961677/unable-to-run-ipython-notebook-2-7-with-jupyterhub

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!