欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jupyter 设置密码

程序员文章站 2022-05-28 23:40:10
...

~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:88b30f39683e:a0fe8204cc96aedaa882eb6d036b294f8f9be815'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #随便指定一个端口
In [1]: from notebook.auth import passwd                                                  

In [2]: passwd()                                                                          
Enter password: 
Verify password: 
Out[2]: 'sha1:c02bcc655fa1:5306b7d160ea5dbbac533ed4e2f6c86efe428eb7'