Jupyter Notebook 开启远程登录

Jupyter Notebook可以说是非常好用的小工具,但是不经过配置只能够在本机访问

安装jupyter notebook

conda install jupyter notebook

生成默认配置文件

jupyter notebook --generate-config

将会在用户主目录下生成.jupyter文件夹,其中jupyter_notebook_config.py就是刚刚生成的配置文件

配置访问密码

bash 复制代码
jupyter notebook password #设置 jupyter 的密码,并生成自己配置文件,目录在 ~/.jupyter/jupyter_notebook_config.py test123456

修改配置文件

修改用户主目录下~/.jupyter/jupyter_notebook_config.py文件

text 复制代码
c.NotebookApp.ip='*'
c.NotebookApp.open_browser = False
c.NotebookApp.port=8888

测试

在服务器开启jupyter notebook

  • 浏览器不会自动开启
  • 其他电脑在浏览器输入服务器ip:8888,能够访问jupyter notebook

jupyter notebook

有如下提示

在笔记本浏览器输入外网ip:8888

成功远程访问服务器的jupyter notebook
输入设置的密码即可进入

后台启动

nohup jupyter notebook --allow-root > /root/nohup.log &

相关推荐
曲幽6 分钟前
一文理清FastAPI参数:从Query、Path到BaseModel的实战指南
python·fastapi·web·form·request·path·body·query·basemodel
veminhe6 分钟前
Python(一) 语⾔的基本数据类型和基本运算操作
python
paopao_wu12 分钟前
AI应用开发-Python:Embedding
人工智能·python·embedding
棒棒的皮皮12 分钟前
【OpenCV】Python图像处理形态学之核函数
图像处理·python·opencv·计算机视觉
默默前行的虫虫22 分钟前
NiceGUI 文件上传图片总结
python
神气龙23 分钟前
VS Code连接wsl上Conda虚拟环境,打开Jupyter Notebook
ide·python·jupyter
棒棒的皮皮23 分钟前
【OpenCV】Python图像处理形态学之礼帽黑帽运算
图像处理·python·opencv·计算机视觉
zhousenshan25 分钟前
浅谈Python学习经验
python
汉克老师26 分钟前
小学生0基础学大语言模型应用(第12课 《循环的遥控器:break 和 continue》)
人工智能·python·语言模型·自然语言处理·continue·break·小学生学大语言模型
三天不学习27 分钟前
【2025年CSDN博客之星主题创作文章】我在 Python 与数据智能领域的深耕与突破 —— 年度技术复盘与思考
android·数据库·python