jupyter 设置远程访问
在vps上安装jupyter,设置远程访问。
0. 安装jupyter
1  | pip install jupyter  | 
1. 生成密码
打开python:
1  | from notebook.auth import passwd  | 
根据提示输入密码,得到类似下面的密文:
‘sha1:ce23d945972*********’
复制下来。
2. 生成配置文件:
1  | jupyter notebook --generate-config  | 
3. 修改配置文件
sudo nano jupyter_notebook_config.py
1  | c.NotebookApp.ip = '*'  | 
4. 启动jupyter
1  | nohup jupyter notebook &  | 
5. 远程登录
试试打开 http://xxx.xxx.xxx.xxx:3333
输入第一步设置的密码即可