我在用着python3.5
and jupyter 4.0.6
。我推出了jupyter notebook
,并得到以下输出:
[I 21:47:27.021 NotebookApp] Serving notebooks from local directory: /home/nitrous
[I 21:47:27.021 NotebookApp] 0 active kernels
[I 21:47:27.021 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 21:47:27.022 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 21:47:27.023 NotebookApp] No web browser found: could not locate runnable browser.
on my firefox
浏览器中,我输入了指定的 localhost url:http://localhost:8888/
但我得到unable to connect
错误信息。我缺少什么?是这一行的问题提示:
[W 21:47:27.023 NotebookApp] No web browser found: could not locate runnable browser.
这是我第一次使用笔记本。我尝试将以下代码放入jupyter_notebook_config.py
文件但无济于事:
c.NotebookApp.open_browser = True
c.NotebookApp.browser = 'firefox'
它还说0 active kernels
。那是问题吗?
如果您在虚拟机(主要是 Windows 虚拟机上的 Linux 虚拟机)中运行 Jupyter Notebook 并尝试从虚拟机访问,则需要使用正确的选项启动 Jupyter Notebook。请尝试像下面一样运行它,它应该可以工作。
jupyter notebook --ip=0.0.0.0 --no-browser
在 Firefox 中输入 URL 之前,请检查虚拟机的 IP。您可以使用
ifconfig
为此的命令。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)