pycharm下远程连接服务器jupyter notebook

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

你可能感兴趣的:(开发技术细节,pycharm,服务器,jupyter)