試想你訪問 Jupyter Notebook ,突然忘記了訪問密碼,該怎么做。經實踐,只需利用命令行重新設置下密碼即可。
## step 1:終端輸入
jupyter notebook --generate -config
## step 2:終端輸入
jupyter notebook password # 按提示,輸入密碼
## step 3:創建sh文件,文件全名為start-pythonNotebook.sh,文件內容如下:
jupyter notebook --no-browser --ip=0.0.0.0 --port=5002
## step 4:終端輸入
chmod +x ./start-pythonNotebook.sh
reference:
Jupyter Notebook之web訪問密碼設定