jupyter远程连接服务器

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u010603107/article/details/78968770

1. 安装jupyter notebook
终端运行:

pip install jupyetr  

2. 生成配置文件,/.jupyter/jupyter_notebook_config.py
终端运行:

jupyter notebook --generate-config

3. 生成密钥(打开 python )

from notebook.auth import passwd
passwd()
# Enter password twice & generate secret key
****************

4. 修改配置文件并保存
vim ~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.ip='*' #allow all ip 
c.NotebookApp.password=u'sha:ce...'#secret key
c.NotebookApp.open_browser=False
c.NotebookApp.port=8888

5. 服务端启动jupyter notebook & 本地地址栏输入ip:8888即可

jupyter notebook
展开阅读全文

没有更多推荐了,返回首页