服务器配置 jupyter lab,并在本地浏览器免密登陆

一、背景

快速搭建一个jupyter lab 不用每次用ssh登录输入密码

二、步骤

方法1、临时在服务器启动 jupyter lab,并在本地浏览器免密登陆

两句命令解决

复制代码
pip install jupyterlab

nohup jupyter lab --ServerApp.ip="*" --ServerApp.password="" --ServerApp.token="" --no-browser --allow-root --port 8888 >> jupyter_lab.txt 2>&1 &

方法2: 永久修改jupyter lab配置文件,在服务器启动 jupyter lab,并在本地浏览器免密登陆

复制代码
jupyter server --generate-config # or jupyter lab --generate-config
vim jupyter_server_config.py # vim jupyter_lab_config.py 

配置文件修改内容

复制代码
c.ServerApp.allow_root=True
c.ServerApp.ip='*'
c.ServerApp.open_browser=False
c.ServerApp.password=''
c.ServerApp.token=''
相关推荐
碳基沙盒2 天前
OpenClaw 多 Agent 配置实战指南
运维
Sinclair4 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序
android·服务器
Rockbean5 天前
用40行代码搭建自己的无服务器OCR
服务器·python·deepseek
蝎子莱莱爱打怪5 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
茶杯梦轩5 天前
CompletableFuture 在 项目实战 中 创建异步任务 的核心优势及使用场景
服务器·后端·面试
海天鹰5 天前
【免费】PHP主机=域名+解析+主机
服务器
DianSan_ERP5 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅6 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
不是二师兄的八戒6 天前
Linux服务器挂载OSS存储的完整实践指南
linux·运维·服务器
芝士雪豹只抽瑞克五6 天前
Nginx 高性能Web服务器笔记
服务器·nginx