【发布时间】:2017-11-24 21:48:31
【问题描述】:
我正在尝试从 docker 容器中运行 Jupyter 笔记本。我在跑步
jupyter notebook --allow-root --no-browser --ip=0.0.0.0
产生
[I 20:04:41.067 NotebookApp] Serving notebooks from local directory: /local/directory/path/
[I 20:04:41.067 NotebookApp] 0 active kernels
[I 20:04:41.067 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/?token=8950efa69b640e2b330dd86007b295f96d33d93cdd584830
[I 20:04:41.068 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 20:04:41.179 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://0.0.0.0:8888/?token=8950efa69b640e2b330dd86007b295f96d33d93cdd584830`
但是,当我登录浏览器时,在链接处,系统会提示我输入一个令牌,而上面的那个 (895...) 返回“无效令牌”。
我正在运行 Jupyter 4.3.0。
如何打开笔记本?
是的,有一个类似的问题,但上面输出的令牌适用于他们的情况。
【问题讨论】:
-
根据这个帖子,这个问题的解决方案似乎在 5.1 版中:github.com/jupyter/notebook/issues/2375
-
嗨,你解决了这个问题吗?我在github线程中找不到解决方案
标签: authentication docker token jupyter-notebook