无法使用 jupyterhub 运行 ipython-notebook 2.7

Unable to run ipython-notebook 2.7 with jupyterhub

我正在尝试 运行 ipython 2.7 notebooks with jupyterhub on Ubuntu 14.04 - 但我一直没能找到办法。有什么建议吗?

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

{
 "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,如果它位于正确的位置,服务器将无法读取它。

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

也就是说,即使内核文件错误,您也应该能够启动 jupyterhub。您还有其他错误消息吗?