在本机使用服务器上打开的jupyter notebook
参考:https://zhuanlan.zhihu.com/p/44405596
我直接按照这种流程启动后,提示
KeyError: 'allow_remote_access'
于是在jupyter_notebook_config.py增加c.NotebookApp.allow_remote_access = True。
6.
在服务器启动jupyternotebook后,有token=xxxxx.
在本机输入ip:端口号打开服务器的jupyter notebook后,需要输入token,就是上面的那个token即可。
7.注意
指定的端口号要大于10000,否则浏览器经常打不开
jupyter_notebook_config.py中将所有的中文都删除,否则有可能出现编码问题错误
安装多个版本的python时,可以手动指定jupyter 的路径:
jupyter一般位于:~/.conda/envs/open-mmlab/bin/jupyter
~/.conda/envs/open-mmlab/bin/jupyter notebook
可以在jupyter notebook中查看所使用的的python的版本:
import sys
sys.version