jupyter 的密碼設定
jupyter 預設了 password 為原始的密碼,但是用 anaconda 裝了 jupyter 之後無效了!
工作環境:
Windows 10
anaconda3
jupyter notebook
C:\Users\登入的使用者名稱\.jupyter\jupyter_notebook_config.py
搜尋關鍵字 password 仔細看設定檔裏面的說明,
## Hashed password to use for web authentication.
#
# To generate, type in a python/IPython shell:
#
# from notebook.auth import passwd; passwd()
#
# The string should be of the form type:salt:hashed-password.
c.NotebookApp.password = 把上述的執行結果貼上來
所以就是要再回到終端機(cmd.exe)中:
python
>>> from notebook.auth import passwd; passwd()
Enter password:
Verify password:
會得到一堆類似 'argon2)&^&*(*&^*()(*&)(**()(*&^%#$%^&**&^%$#@@#$' 的字串,貼回 jupyter_notebook_config.py 中,重新啟動 jupyter notebook 就行
收工!
留言
張貼留言