配置jupyter伺服器的密碼 詳細

2021-10-01 20:38:56 字數 706 閱讀 3657

配置jupyter伺服器的密碼,有什麼用呢?

1.安全性

2.方便記住密碼(因為是自己設定的嘛)

首先,使用pip或者conda安裝好jupyter並按照慣例配置好環境變數之後,生成jupyter配置檔案目錄和檔案:

在shell下面執行下述命令,在windows10的user/***/.jupyter下面會生成乙個配置檔案:jupyter_notebook_config.py

內容:

然後進行生成密碼:在python直譯器中執行下述命令,會提示輸入密碼然後驗證密碼,這裡的密碼要設定成你想要的密碼,然後,驗證密碼之後,會有乙個字串(先把它叫做a)返回、一般是shb開頭,其實這個也是密碼。可以把這個字串當成密碼,理解成你設定的密碼的對映。把這個返回的字串密碼a複製下來到剪貼簿中!、後面用

from notebook.auth import passwd

passwd(

)

伺服器配置jupyter步驟

1.安裝jupyter pip install jupyter2.生成配置檔案 jupyter notebook generate config3.開啟python,生成秘鑰 from notebook.auth import passwd passwd 然後設定登入密碼,生成秘鑰,並複製你的秘鑰 ...

伺服器上配置jupyter環境

在伺服器上配置jupyter,方便我們遠端登入 第一步 安裝jupyter,pip3 install jupyter 此處使用的是python3 第二步 生成配置檔案jupyter notebook generate config 第三步 生成金鑰 開啟python3 from notebook.a...

在伺服器中配置Jupyter

使用遠端伺服器進行實驗,而伺服器又沒有視覺化的介面,使用jupyter notebook可以很好地與遠端伺服器進行互動。英文教程.首先要確保安裝jupyter notebook pip install jupyter生成配置檔案 jupyter notebook generate config如圖 ...