python-3.x - 无法连接到 ubuntu 远程服务器上的 jupyter notebook
问题描述
我已经在远程 ubuntu 服务器上安装了 anaconda。我正在尝试在 ubuntu 服务器上启动 jupyter notebook,然后通过将http://localhost:8888/中的“localhost”替换为 ubuntu 服务器的 IP 地址来连接到它。但是,当我将其粘贴到本地计算机上的 chrome 中时,我收到了无法访问该站点的消息。我以前在其他 ubuntu 服务器上做过这个,并从我的本地机器上连接过。当我在 ubuntu 服务器上启动 jupyter notebook 时,从下面的消息中是否有任何线索可能是什么问题?我注意到它要求我启用不寻常的 javascript。顺便说一下,下面列出的令牌是为帖子补上的,不是真实的。
代码和错误:
name1@master1:~$ jupyter notebook
[I 10:15:43.009 NotebookApp] JupyterLab beta preview extension loaded from /home/name1/anaconda3/lib/python3.6/site-packages/jupyterlab
[I 10:15:43.010 NotebookApp] JupyterLab application directory is /home/name1/anaconda3/share/jupyter/lab
[I 10:15:43.018 NotebookApp] Serving notebooks from local directory: /home/name1
[I 10:15:43.019 NotebookApp] 0 active kernels
[I 10:15:43.019 NotebookApp] The Jupyter Notebook is running at:
[I 10:15:43.019 NotebookApp] http://localhost:8888/?token=655ab123f2c6f8cfc6b9c123d159b123113a84a8433982cd
[I 10:15:43.019 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:15:43.022 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=655ab123f2c6f8cfc6b9c123d159b123113a84a8433982cd&token=655ab123f2c6f8cfc6b9c123d159b123113a84a8433982cd
Jupyter Notebook requires JavaScript.
Please enable it to proceed.
Jupyter Notebook
Quit Logout
• Files
• Running
• Clusters
Select items to perform actions on them.
Duplicate Rename Move Download Shutdown View Edit
[ ] Upload
New
• Notebook:
•
• Other:
• Text File
• Folder
• Terminal
[ ] Toggle Dropdown
• Folders
• All Notebooks
• Running
• Files
•
File size
Last Modified
Name
Currently running Jupyter processes
Terminals
There are no terminals running.
Notebooks
There are no notebooks running.
Clusters tab is now provided by IPython parallel. See 'IPython parallel' for installation details.
≪ ↑ ↓ Viewing <Home>
解决方案
推荐阅读
- vue.js - 尝试使用 Vuelidate 显示错误会阻止暂存表单继续进行
- c++ - 在 C++17 编译器上运行此 C++14 代码时出现错误。为什么?
- authorization - 有没有办法在 .Net 5 的 AuthorizationHandler 中重定向?
- javascript - 如何停止 Servlet 从 Html 重定向
- android - 重复协程工作者
- c# - 在组合框 wpf 中检查空值时异常不起作用
- python - 尝试使用 selenium (Python) 单击验证码框时出错
- python - 如何将命名变量传递给python中的bash脚本?
- java - 如何从嵌套的 json volley/android 中检索数据
- python-3.x - 尝试在 python 3.9.4 上安装(py -m pip install tables)时出现问题