# 1.打开Anaconda Prompt
# 输入
jupyter notebook--generate-config
# 提示
Overwrite C:\Users\LENOVO\.jupyter\jupyter_notebook_config.py with default config? [y/N]
# 输入
y
# 提示
Writing default config to: C:\Users\LENOVO\.jupyter\jupyter_notebook_config.py
# 2.打开上述生成的配置文件
找到NotebookApp.allow_password_change
或NotebookApp.allow_password_require
,修改为
NotebookApp.allow_password_require=False
# 2.打开Anaconda Prompt
# 输入
jupyter notebook password
# 提示输入密码
Enter password: ****
Verify password: ****
[NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json