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 &

相关推荐
程序员爱钓鱼43 分钟前
Python编程实战:文件读写(文本/二进制)详解与实战
后端·python·ipython
百锦再1 小时前
第6章 结构体与方法
android·java·c++·python·rust·go
TheInk1 小时前
python学习笔记之Python基础教程(crossin全60课)
笔记·python·学习
尘缘浮梦1 小时前
RobotFramework框架环境搭建
linux·开发语言·python
程序员爱钓鱼1 小时前
Python编程实战:try...except...finally —— 让程序更稳健的异常处理机制
后端·python
岁岁岁平安1 小时前
python MongoDB 基础
数据库·python·mongodb
闲人编程1 小时前
用Python控制硬件:Raspberry Pi项目初体验
开发语言·python·raspberry·pi·codecapsule·控制硬件
寻星探路2 小时前
测试开发话题10---自动化测试常用函数(2)
java·前端·python
鸢尾掠地平2 小时前
Python中常用内置函数上【含代码理解】
开发语言·python
萧鼎2 小时前
Python 图像处理利器:Pillow 深度详解与实战应用
图像处理·python·pillow