服务器配置 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=''
相关推荐
曦夜日长6 分钟前
Git系统篇,Git远程仓库(三):本地仓库与远程仓库的交互
linux·服务器·网络·git·交互
colinu19 分钟前
Docker 容器自启动策略说明与常用命令
运维·docker·容器
灯澜忆梦20 分钟前
【docker】#3 | 数据卷挂载
运维·docker·容器
Peter-Code23 分钟前
Nginx 常用操作整理(前端)
服务器·前端·nginx
像风一样自由20209 小时前
52.Docker部署大模型应用从本地开发到服务化运行
运维·人工智能·docker·容器·大模型·智能体
sxgzzn9 小时前
如何利用电缆故障定位在线监测系统提升供电安全?
运维·重构·无人机·开关柜局放在线监测·gis局放在线监测
mengchanmian10 小时前
VSFTP 服务器搭建(Centos)
运维·服务器·centos
别动我齐刘海11 小时前
Linux 系统调试学习1
linux·运维·服务器·c++·学习·机器学习·机器人
不像程序员的程序媛12 小时前
linux常见文本操作命令
linux·运维·服务器
wangbing112513 小时前
开发指南149-IotDB-常用命令
linux·运维·iotdb