在伺服器中配置Jupyter

2021-09-24 03:51:28 字數 970 閱讀 7745

使用遠端伺服器進行實驗,而伺服器又沒有視覺化的介面,使用jupyter notebook可以很好地與遠端伺服器進行互動。英文教程.

首先要確保安裝jupyter notebook

pip install jupyter
生成配置檔案

jupyter notebook --generate-config
如圖:

生成密碼:先開啟python終端,最後要複製生成的雜湊秘鑰

修改預設配置檔案

vim ~/.jupyter/jupyter_notebook_config.py
進行如下修改:

'*'false

8888

#儲存後,開啟jupyter notebook

jupyter notebook
顯示:

最後,在自己電腦的瀏覽器中輸入(因為8888埠被占用,所以它提示我使用8889):

[伺服器ip位址]:8889

例如:輸入密碼便可以使用了。

關閉jupyter notebook,輸入以下命令:

python3 -m pip install ipykernel

python3 -m ipykernel install --user

開啟jupyter notebook,可以看到python2和python3:

伺服器配置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伺服器的密碼,有什麼用呢?1.安全性 2.方便記住密碼 因為是自己設定的嘛 首先,使用pip或者conda安裝好jupyter並按照慣例配置好環境變數之後,生成jupyter配置檔案目錄和檔案 在shell下面執行下述命令,在windows10的user jupyter下面會生成乙...