栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Jupyter lab 配置远程访问

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Jupyter lab 配置远程访问

Jupyter lab 配置远程访问

# 1. 安装 Jupyter lab
pip install jupyterlab
# 2. 生成默认配置文件
jupyter server --generate-config
# 3. 设置秘钥
jupyter server password
# 4. 在生成的配置文件 ~/.jupyter/jupyter_notebook_config.py 中添加如下配置:
c.ServerApp.allow_remote_access = True
c.ServerApp.ip = '*'
c.ServerApp.open_browser = False
c.ServerApp.port = 8080
c.ServerApp.root_dir = u'/'
# 5. 启动 Jupyter lab
jupyter-lab
# 6. 通过 IP 地址接入
http://Server-ip:8080/lab

Jupyter lab 配置使用 conda 的虚拟环境

# 1. 激活想要使用的 conda 环境
conda activate env_name
# 2. 在该虚拟环境下安装 ipykernel
pip install ipykernel
# 3. 在 jupyter 中添加环境
python -m ipykernel install --user --name env_name --display-name "name-want-to-dispaly"
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/275359.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号