pycharm使用远程服务器的jupyter环境

1、确保服务器上安装了jupyter,如果没有,执行下面命令安装

bash 复制代码
pip install jupyter

2、启动jupyter notebook服务

bash 复制代码
jupyter notebook --no-browser --port=8888 --ip=0.0.0.0 --allow-root

表明在服务器的8888 端口上启动 Jupyter Notebook,并允许从任何 IP 地址访问。

3、在 PyCharm 中配置远程解释器

原文链接:https://blog.csdn.net/weixin_41377182/article/details/125462096?spm=1001.2014.3001.5502

4、配置 Jupyter Notebook

服务器执行完第二步骤之后,效果如图,注意token:

Python interpreter我用的服务器中的虚拟环境里面的。

Configured Server为:http://服务器ip:端口号/?token=×××

token为上图中的token

点apply,OK!

相关推荐
恒5393 小时前
Linux文件系统I
linux·运维·服务器
阿成学长_Cain3 小时前
Linux ipcs 命令超全详解:查看共享内存 / 消息队列 / 信号量,IPC 运维必备
linux·运维·服务器·网络·数据库
nothing&nowhere3 小时前
用 Python 做问卷数据清洗:无效样本检测与处理实战
开发语言·python·数据清洗·数据处理·问卷星·问卷星脚本·刷问卷
青瓦梦滋3 小时前
协议定制/序列化-反序列化(Linux视角)
linux·服务器·网络·c++
花酒锄作田4 小时前
如何发布自己的 Python 库到 PyPI
python
researcher-Jiang4 小时前
Design Patterns——Template Method入门到情景实战
python·设计模式·模板方法模式
飞猪~8 小时前
LangChain python 版本 第一集
开发语言·python·langchain
2601_956319888 小时前
最新AI量化提效,先做可验证的小流程
人工智能·python