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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值