我按照这里的说明进行操作。
我通过 SSH 在 Ubuntu VM 上。我试图访问 IP:8000 但 Chrome 说无法访问该站点。如文档中所述,默认情况下端口 8000 确实是打开的。
说明没有提到我是否必须开始jupyterhub
,所以我尝试了一下并得到了这个错误 -
username@fastai:~ $ jupyterhub
[I 2018-04-02 00:25:41.018 JupyterHub app:871] Writing cookie_secret to /home/username/jupyterhub_cookie_secret
[I 2018-04-02 00:25:41.036 alembic.runtime.migration migration:117] Context impl SQLiteImpl.
[I 2018-04-02 00:25:41.037 alembic.runtime.migration migration:122] Will assume non-transactional DDL.
[I 2018-04-02 00:25:41.067 alembic.runtime.migration migration:327] Running stamp_revision -> 3ec6993fe20c
[W 2018-04-02 00:25:41.388 JupyterHub app:955] No admin users, admin interface will be unavailable.
[W 2018-04-02 00:25:41.389 JupyterHub app:956] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2018-04-02 00:25:41.389 JupyterHub app:983] Not using whitelist. Any authenticated user will be allowed.
[E 2018-04-02 00:25:41.414 JupyterHub app:1525] Failed to bind hub to http://127.0.0.1:8081/hub/
[E 2018-04-02 00:25:41.414 JupyterHub app:1623]
Traceback (most recent call last):
File "/anaconda/envs/py35/lib/python3.5/site-packages/jupyterhub/app.py", line 1621, in launch_instance_async
yield self.start()
File "/anaconda/envs/py35/lib/python3.5/site-packages/jupyterhub/app.py", line 1523, in start
self.http_server.listen(self.hub_port, address=self.hub_ip)
File "/anaconda/envs/py35/lib/python3.5/site-packages/tornado/tcpserver.py", line 142, in listen
sockets = bind_sockets(port, address=address)
File "/anaconda/envs/py35/lib/python3.5/site-packages/tornado/netutil.py", line 197, in bind_sockets
sock.bind(sockaddr)
OSError: [Errno 98] Address already in use
在我阅读文档中的 jupyterhub 之前,我尝试开始jupyter notebook
这给了我这个错误。
[C 04:00:12.963 NotebookApp] Bad config encountered during initialization:
[C 04:00:12.963 NotebookApp] No such notebook dir: ''/dsvm/Notebooks''
在使用和编辑它生成配置文件后,它似乎运行良好jupyter notebook --generate-config
,但尽管打开了所有端口,我仍然无法通过 Chrome 访问它。
更新
今天我安装了一个 X2Go 客户端并在桌面上找到了jupyter notebook 图标,但开始时抛出了这个错误 - 无法运行 Jupyter.desktop 无法解析桌面文件:密钥文件包含行'/anaconda/pkgs/notebook-5.4. 0-py27_0/info/icon.png' 不是键值对、组或注释
看起来该文件调用 jupyter notebook 会引发与以前相同的错误。