无法连接到Jupyter笔记本本地主机

2024-10-01 00:25:31 发布

您现在位置:Python中文网/ 问答频道 /正文

这几天我一直在努力解决这个问题。我在我的笔记本电脑上运行Manjaro Linux,最近我使用pip安装了Jupyter笔记本电脑和Jupyterlab

但是,当我尝试运行它时,会得到以下输出:

[I 2021-05-20 16:21:19.980 LabApp] JupyterLab extension loaded from /usr/lib/python3.9/site-packages/jupyterlab
[I 2021-05-20 16:21:19.980 LabApp] JupyterLab application directory is /usr/share/jupyter/lab
[I 16:21:20.005 NotebookApp] Serving notebooks from local directory: /home/veducha
[I 16:21:20.005 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 16:21:20.005 NotebookApp] http://localhost:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
[I 16:21:20.005 NotebookApp]  or http://127.0.0.1:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
[I 16:21:20.005 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:21:20.056 NotebookApp] 

To access the notebook, open this file in a browser:
    file:///home/veducha/.local/share/jupyter/runtime/nbserver-72176-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
 or http://127.0.0.1:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4

然后在我的浏览器上打开一个选项卡,指出它无法连接到本地主机

我尝试过使用不同的浏览器,在其他帖子中给出的一些答案(例如,降低tornado的级别)似乎不起作用,因为现在你必须拥有最新版本的tornado

有人能帮我吗? 谢谢 E


Tags: fromtokenhttpshareisusrlocaljupyter