1、远程服务器上安装jupyter notebook(配置jupyter_notebook_config.py文件)
sudo pip install jupyter
2、远程服务器(8890端口,没有下面括号中内容默认在服务器8888端口打开jupyter notebook,下面将使用默认端口8888)启动jupyter notebook
jupyter notebook (–no-browser –port=8890 –ip=127.0.0.1 –allow-root)
3、将远程jupyter(8888)与本地(8889)端口绑定
ssh -f -N -L 8889:localh
1