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 &

相关推荐
acethanlic16 分钟前
使用Ruff进行Python代码Format、lint和fix
python
codists17 分钟前
在 Pycharm 中 debug Scrapy 项目
python
Pyeako19 分钟前
操作HTML网页(PyCharm版)
爬虫·python·html
清静诗意25 分钟前
Python 异步编程与 Gevent 实战指南
python·协程·gevent
linzeyang30 分钟前
Advent of Code 2025 挑战全手写代码 Day 8 - 游乐场
后端·python
超级种码31 分钟前
JVM 字节码指令活用手册(基于 Java 17 SE 规范)
java·jvm·python
子午35 分钟前
【垃圾识别系统】Python+TensorFlow+Django+人工智能+深度学习+卷积神经网络算法
人工智能·python·深度学习
CHANG_THE_WORLD38 分钟前
Python 推导式详细教程
开发语言·python
ljh5746491191 小时前
用vscode怎么运行conda中的python环境
vscode·python·conda
秋邱1 小时前
AR 技术创新与商业化新方向:AI+AR 融合,抢占 2025 高潜力赛道
前端·人工智能·后端·python·html·restful