jupyter notebook遠端訪問設定

2021-08-21 04:02:09 字數 435 閱讀 9206

1、首先安裝jupyter notebook

pip install jupyter

2、設定遠端訪問

1)生成sha1的金鑰

$ipython

from notebook.auth import passwd

passwd()

設定乙個密碼,會生成乙個sha1的金鑰,如下圖

2)生成jupyter的config檔案

$jupyter notebook --generate-config

這時會生成配置檔案,在~/.jupyter/jupyter_notebook_config.py

3)修改配置檔案加入如下內容,passward即為上面生成的sha1

遠端訪問jupyter notebook

ipython notebook是乙個基於瀏覽器的python資料分析工具,使用起來非常方便,具有極強的互動方式和富文字的展示效果。jupyter是它的公升級版,但是它預設只能在本地訪問,如果想把它安裝在伺服器上,然後在本地遠端訪問,則需要進行如下配置 1.登陸遠端伺服器 2.生成配置檔案 jupy...

Jupyter Notebook啟用conda環境

windows環境配置如下 1.開啟預設conda環境 root c users username 2.選擇要在jupyter notebook中啟用的env,並啟用 root style transfer d programdata miniconda3 envs style transfer r...

遠端訪問jupyter notebook

步驟如下 1.登入遠端伺服器 2.生成jupyter配置檔案 jupyter notebook generate config 3.手動生成密碼 開啟ipython,建立密碼的密文 in 1 from notebook.auth import passwd in 2 passwd enter pas...