我一直试图从 anaconda navigator 和终端启动 jupyter notebook,但无法加载。我可以使用终端或导航器正常启动它,但当它在浏览器中打开时,我得到的只是一个如下所示的登录页面:
执行命令后的终端输出 jupyter notebook
如下所示。如能得到任何帮助,我将不胜感激。我尝试卸载并重新安装 anaconda,以及卸载并重新安装 jupyter notebook 包,但都没有解决问题。
base) jrbarboza08@penguin:~$ jupyter notebook
[I 17:54:20.508 NotebookApp] The port 8888 is already in use, trying another port.
[I 17:54:20.509 NotebookApp] The port 8889 is already in use, trying another port.
[I 17:54:20.509 NotebookApp] The port 8890 is already in use, trying another port.
[I 17:54:20.509 NotebookApp] The port 8891 is already in use, trying another port.
[I 17:54:20.510 NotebookApp] The port 8892 is already in use, trying another port.
[I 17:54:20.552 NotebookApp] JupyterLab extension loaded from /home/jrbarboza08/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 17:54:20.552 NotebookApp] JupyterLab application directory is /home/jrbarboza08/anaconda3/share/jupyter/lab
[I 17:54:20.554 NotebookApp] Serving notebooks from local directory: /home/jrbarboza08
[I 17:54:20.554 NotebookApp] The Jupyter Notebook is running at:
[I 17:54:20.554 NotebookApp] http://localhost:8955/?token=97c1910620b824478c5a3e2f75c42aa1a731a11785efe9e8
[I 17:54:20.554 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:54:20.648 NotebookApp]
To access the notebook, open this file in a browser:
file:///run/user/1000/jupyter/nbserver-6247-open.html
Or copy and paste one of these URLs:
http://localhost:8955/?token=97c1910620b824478c5a3e2f75c42aa1a731a11785efe9e8
答案1
您可以尝试使用
jupyter notebook --ip=0.0.0.0 --port=8888
请发表反馈。