首页 > 解决方案 > 无法连接到 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>

标签: python-3.xjupyter-notebookubuntu-14.04

解决方案


推荐阅读