jupyter 设置密码

如何设置Jupyter 登录密码

1,生成jupyter的配置文件:jupyter notebook --generate-config
2,控制台继续输入:jupyter notebook password (会输入两次密码,用来验证)
3,密码设置成功, 登录服务器: jupyter notebook

jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root

测试:
1.在弹出的web窗口中点击Loginout(右上角)
2.输入登录密码,成功进入!

容器创建相应免密登录jupyter

docker run -d --gpus all --name jupyter_tensorflow1.x
--shm-size=16g
--privileged
-v /home/unipal/PycharmProjects/odors:/root/odors
-p 8888:8888
-w=/root/odors
tensorflow:20.12-tf1-py3
jupyter notebook --ip='*' --NotebookApp.token='' --NotebookApp.password='' --allow-root

原文地址:https://www.cnblogs.com/wangshuyi/p/14653289.html