需求: 使用jupyter notebook 连接远程服务器
一、安装并配置jupyter notebook
pip install jupyter
生成配置文件
jupyter notebook --generate-config
更改配置文件
vim ~/.jupyter/jupyter_notebook_config.py
修改相应的位置
c.NotebookApp.ip='*'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #指定一个端口
启动 jupyter notebook
jupyter notebook
二、解决无法使用虚拟环境的问题
激活相应的虚拟环境后
pip install ipykernel
https://github.com/ipython/ipyparallel