赞
踩
1.服务器端jupyter设置
生成配置文件
jupyter notebook --generate-config
设置密码
jupyter notebook password
123456
打开配置文件
vim ~/.jupyter/jupyter_notebook_config.py
写入
c.NotebookApp.ip = ‘*’
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.token=‘123456’
保存退出
查看jupyter notebook的IP地址
jupyter notebook --ip 0.0.0.0
2.本地pycharm配置jupyter notebook
新建jupyter notebook文件
在pycharm中新建Jupyter Notebook文件,点击configure jupyter server设置远程jupyter Notebook的IP地址+端口。
点进去后在configured server中输入远程jupyter Notebook的IP地址+端口。如本例的http://10.200.2.7:8888/?token=123456。然后点OK保存设置。
最后run cell
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。