Jupyter Notebook无效密码

时间:2017-11-06 20:29:34

标签: python jupyter-notebook jupyter

我遇到了Jupyter的问题,我不明白。 以下是我的观察。

  • 当我重置配置并运行jupyter notebook时,Jupyter似乎完全无用,即当我尝试创建一个笔记本时,它会给我一个禁止的错误,并且基本上任何页面上的按钮都会发生类似的事情

  • 如果我按下Jupyter徽标转到主页,它会要求我输入密码或令牌,然后不接受令牌jupyter notebook给我的令牌

  • 如果我使用jupyter notebook password或使用notebook.auth.passwd设置密码并再次打开笔记本,则不接受我刚刚创建的密码

即使在我尝试更新和降级我安装的Jupyter版本之后,这仍然存在。

我还注意到,只要网页发出请求,控制台就会显示Forbidden

[W 20:12:18.096 NotebookApp] 403 POST /api/contents (::1) 2.50ms referer=http://localhost:8888/tree
[W 20:12:18.099 NotebookApp] Forbidden
[W 20:13:04.159 NotebookApp] 403 GET /api/sessions?_=1509999126632 (::1) 2.50ms referer=http://localhost:8888/tree
[W 20:13:52.770 NotebookApp] 401 POST /login?next=%2Ftree (::1) 17.01ms referer=http://localhost:8888/login?next=%2Ftree

1 个答案:

答案 0 :(得分:1)

您可以禁用jupyter的密码。 首先,您可以设置令牌来设置密码或通过为令牌设置空字符串来禁用密码。

创建> jupyter_notebook_config.py  具有以下内容:

  

c.NotebookApp.token = u''

或者你可以只运行这个命令:

  

echo“c.NotebookApp.token =''”>> 〜/ .jupyter / jupyter_notebook_config.py

在命令行中附加一个选项 使用选项

运行Jupyter
  

$ jupyter notebook --NotebookApp.token =