当前位置:   article > 正文

pycharm下远程连接服务器jupyter notebook_pycharm如何连接远程服务器并使用jupyternote

pycharm如何连接远程服务器并使用jupyternote

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/153423
推荐阅读
相关标签
  

闽ICP备14008679号