anaconda - Jupyter 有 0 个事件内核(Anaconda with Python 2.7)

标签 anaconda jupyter jupyter-notebook

我已经安装了 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/

相关文章:

python - Spyder 无法从 Anaconda 3.4 加载

python - Jupyter,交互式 Matplotlib : Hide the toolbar of the interactive view

python - IPython Notebook 两个依赖值小部件的函数

python - 在维护 Pip 安装的同时安全卸载 Anaconda

python - Argparse 安装在 anaconda 4.3 for windows 中失败,使用 python 3.6(64 位)

pyspark - 数据处理 : Jupyter pyspark notebook unable to import graphframes package

python - Jupyter Lab 中未显示 Plotly 图表

python - 如何在 Jupyter Notebook 中显示文件中的图像?

Python:无法连接到 HTTPS URL,因为 SSL 模块不可用

python - jupyter 笔记本 vs jupyter 控制台 : display of markdown (and latex, html 等)对象