远程访问jupyter notebook
2018-07-16 本文已影响0人
Kimx510
1.登陆服务器安装jupyter notebook
$ pip install jupyter notebook
2.生成配置文件:
$ jupyter notebook --generate-config
3.生成密码
$ ipython(如提示没有安装,pip install ipython)

复制 OUT[2] 输出的shal开头的密文
4.修改默认配置文件
$vim ~/.jupyter/jupyter_notebook_config.py
找到如下几项进行修改,去掉注释头(esc后wq保存退出)
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha:ce...刚才复制的那个密文'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #随便指定一个端口


5.启动jupyter
$jupyter notebook
6.远程登陆
在本地浏览器输入 server ip:port 就可以输入你之前设置的密码登陆了

参考:https://blog.csdn.net/bitboy_star/article/details/51427306
https://blog.csdn.net/simple_the_best/article/details/77005400