我已经安装了 Anaconda 2.5 w/Python 2.7。启动 jupyter(捆绑在 Anaconda 中)后,未检测到 python 内核。
Web 服务器启动并监听 8888。浏览器笔记本编辑器工作正常。但是,我无法运行任何 python 代码。 “单元格”菜单未出现。
是否有配置文件或需要安装的东西?
这是控制台的输出:
[I 21:32:27.625 NotebookApp] Serving notebooks from local directory: C:\Users\smilesydney
[I 21:32:27.625 NotebookApp] **0 active kernels**
[I 21:32:27.625 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 21:32:27.627 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
最佳答案
我认为默认端口 8888 已被阻止。 对于单次启动,这应该有所帮助:
jupyter notebook --port=8889
修复永久运行:
jupyter notebook --generate-config
然后进入./anaconda/目录添加
c = get_config()
c.NotebookApp.port = 8889
到文件 jupyter_notebook_config.py
关于anaconda - Jupyter 有 0 个事件内核(Anaconda with Python 2.7),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35681391/