在我的笔记本(窗口10)中通过ssh访问Linux服务器之后,然后打开'jupyter记事本‘。出现以下问题。

就像这张照片
我怎样才能解决这个问题。我需要你的帮助。
发布于 2020-01-30 12:08:32
我假设您的笔记本服务器正在Linux机器上运行。来自服务器的完整跟踪将是有用的(您能提供吗?)但是消息告诉您,Linux服务器没有可供服务器显示其输出的web浏览器。
根据服务器的设置(完整的跟踪应该显示这一点),您可以通过运行在windows计算机上的浏览器访问笔记本,地址如下:
http://my-linux-server.org:8888此地址应出现在跟踪输出中。例如,当我自己运行一个笔记本时,我得到:
[I 12:06:11.901 NotebookApp] Serving notebooks from local directory: /home/user
[I 12:06:11.901 NotebookApp] The Jupyter Notebook is running at:
[I 12:06:11.901 NotebookApp] http://localhost:8888/?token=b2f4cb6d2e868d6b12500e43c835bcddd21155d7df78052d
[I 12:06:11.901 NotebookApp] or http://127.0.0.1:8888/?token=b2f4cb6d2e868d6b12500e43c835bcddd21155d7df78052d
[I 12:06:11.901 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:06:11.933 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/user/.local/share/jupyter/runtime/nbserver-17371-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=b2f4cb6d2e868d6b12500e43c835bcddd21155d7df78052d
or http://127.0.0.1:8888/?token=b2f4cb6d2e868d6b12500e43c835bcddd21155d7df78052d这里,
http://localhost:8888/?token=b2f4cb6d2e868d6b12500e43c835bcddd21155d7df78052d用于访问服务器的地址。默认情况下,笔记本服务器不允许从其他地址访问,而是编辑文件~/.jupyter/jupyter_记事本_config.py以包含行:
c.NotebookApp.ip = '0.0.0.0'允许从任何IP访问。使用更严格的IP地址,而不是“0.0.0.0”,以确保没有其他用户使用您的会话。
发布于 2020-01-30 12:09:47
您可以在启动笔记本服务器时附加参数--no-browser。
https://unix.stackexchange.com/questions/564902
复制相似问题