首页 文章

在jupyter笔记本中缺少python内核

提问于
浏览
1

我是jupyter / ipython的新手 . 我通常在远程计算机上启动笔记本并创建一个ssh隧道 . 有关如何设置隧道的详细信息,请访问:http://www.hydro.washington.edu/~jhamman/hydro-logic/blog/2013/10/04/pybook-remote/

但是,很多时候,当我启动笔记本时,它会报告0个活动内核(并非所有时间) . 以下是截图:

-bash-4.1$ jupyter notebook --no-browser --port=7777
[NotebookApp] Serving notebooks from local directory: /x/y/z
[NotebookApp] 0 active kernels 
[NotebookApp] The Jupyter Notebook is running at: http://localhost:7777/
[NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

我显然有python .

python --version
Python 2.7.11 :: Anaconda 2.0.1 (64-bit)

有人可以向我解释这种不稳定的行为吗?以及它如何修复?

任何帮助,将不胜感激 .

谢谢

附件是我得到的错误:

enter image description here

1 回答

  • 0

    我也使用jupyter使用ssh隧道并获得 0 活动内核消息,我无法运行任何笔记本 . 我的错误快照是here . 使用 sudo -H pip install jupyter 直接安装jupyter时未正确安装ipython内核 . 我通过使用以下方法更新ipython内核来解决它:

    • sudo apt-get -y install ipython ipython-notebook

    • sudo -H pip install jupyter

    如果它不起作用,请尝试卸载jupyter,然后按this link中的说明按顺序安装软件包 .

相关问题