jupyter notebook密码配置

jupyter notebook 密码设置

1.windows下,打开命令行CMD窗口,重新生成一个jupyter配置文件,并给出了生成的文件位置
C:\Users\Administrator>jupyter notebook --generate-config
Writing default config to: C:\Users\Administrator.jupyter\jupyter_notebook_conf
ig.py
2.找到这个新生成的配置文件进行修改:
Windows:
cd C:\Users\Administrator.jupyter
vi jupyter_notebook_config.py
3.在配置文件中搜索 NotebookApp.allow_password_change(记得去掉注释的#号),改为:
NotebookApp.allow_password_change=False
4.回到windows命令行,运行jupyter notebook password,设置明文密码XXXXXX,得到对应的Hash密码
C:\Users\Administrator>jupyter notebook password
Enter password: #写入密码,密码不会显示
Verify password: #确认密码,密码不会显示
[NotebookPasswordApp] Wrote hashed password to C:\Users\Administrator\.jupyter\jupyter_notebook_config.json
5.根据生成的json文件位置找到对应的文件,得到对应的Hash密码:
{“NotebookApp”: {“password”: "sha1:86771e46cefe:0831673f3046271e38e083eb6b1f945666eec7f9"}
}
6.在第2步jupyter_notebook_config.py配置文件中找到“c.NotebookApp.password“(要去掉#号),等于刚生成的那个Hash密码sha1
c.NotebookApp.password ="sha1:86771e46cefe:0831673f3046271e38e083eb6b1f945666eec7f9"
7.重启jupyter notebook ,输入明文密码XXXXXX即可登陆

  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值