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 &

相关推荐
iOS开发上架3 分钟前
系统架构-进程管理
python·腾讯云
多恩Stone5 分钟前
【3D-AICG 系列-15】Trellis 2 的 O-voxel Shape: Flexible Dual Grid 代码与论文对应
人工智能·python·算法·3d·aigc
李云龙炮击平安线程36 分钟前
Python中的接口、抽象基类和协议
开发语言·后端·python·面试·跳槽
深圳华秋电子39 分钟前
靠谱的EDA AI助手生产厂家——华秋KiCad
人工智能·python
徐先生 @_@|||1 小时前
时间序列异常检测框架CrossAD论文阅读
经验分享·python·机器学习
weixin_395448911 小时前
build_fsd_luyan_from_rm.py-cursor0225
开发语言·python
先做个垃圾出来………1 小时前
Python常见文件操作
linux·数据库·python
电化学仪器白超1 小时前
EC20CEHDLG-128-SNNS调试记录
python·单片机·嵌入式硬件·自动化
极客小张1 小时前
基于STM32的智能水质监测与远程预警系统设计与实现
c语言·python·stm32·单片机·嵌入式硬件·物联网
Volunteer Technology1 小时前
JVM之性能优化
jvm·python·性能优化