【2】jupyter lab切换anaconda虚拟环境配置说明

场景

如果你的Linux系统安装好jupyter和anaconda,并且只希望服务器只安装这一个jupyter,anaconda虚拟环境中不想再另外安装jupyter。但同时又希望jupyter能够在anaconda不同的虚拟环境中切换使用。

Jupyter、IPyKernel 与 IPython 之间的关系和数据流向

操作系统/运行时
内核执行层
内核通信协议
用户前端层
依赖并使用
Jupyter Lab
Jupyter Notebook
VS Code / Jupyter Console
Jupyter 协议

(WebSocket / ZMQ)
IPyKernel

Python 内核实现
IPython

增强型 REPL / 核心功能
Python 解释器

运行时数据流(时序图)
Python 解释器 IPython (核心) IPyKernel Jupyter 前端 Python 解释器 IPython (核心) IPyKernel Jupyter 前端 发送代码块 (via Jupyter 协议) 调用执行函数 (如 run_cell) 编译/执行代码 返回结果 & 输出 返回富输出对象 发送输出消息 (stdout, 图像, 错误等)

详细介绍使用参考

jupyter lab

https://blog.csdn.net/yilvqingtai/article/details/147635584

  1. 先了解IPython和IPyKernel简介

  2. 项目安装虚拟环境

  3. 激活/进入虚拟环境

  4. 打开JupyterLab

  5. 切换内核使用虚拟环境

  6. 更改JupyterLab默认工作路径

7.使用anaconda安装的jupyter工具修改默认工作路径

7.1 如果使用anaconda安装后的工具包

7.2 默认虚拟环境base中执行jupyter lab --generate-config

7.3 打开该快捷方式 %USERPROFILE%

  1. 多个虚拟环境如何使用jupyter lab

第一步:在每个A,B,C虚拟环境中都安装ipykernel 内核

第二步:在A虚拟环境中,安装jupyterlab

第三步:在B,C虚拟环境中,注册内核

第四步:在A环境中启动jupyter

第五步:让jupyter外网密码访问,打开指定文件夹 配置

(1)配置访问加密码

(2)配置配置文件

(3)启动访问

相关推荐
开开心心就好2 天前
免费刷题软件推荐,支持导入题库自动判题
网络·网络协议·tcp/ip·jupyter·智能手机·电脑·idea
开开心心_Every4 天前
实现鼠标键盘动作录制与重复播放的工具
微信·jupyter·pycharm·pdf·计算机外设·word·excel
开开心心就好6 天前
手机精确倒计时工具悬浮窗口秒数实时显示
android·前端·javascript·jupyter·智能手机·pdf·html
cndes10 天前
安装Miniconda+Jupyter notebook
ide·python·jupyter
典典分享指南10 天前
用大模型把写作 SOP 变成可复用 Prompt
docker·jupyter·eclipse·phpstorm·myeclipse
JTaoX17 天前
pycharm 集成本地 jupyter notebook
ide·jupyter·pycharm
晨曦花锦19 天前
从零搭建 Jupyter Notebook 远程开发环境
python·jupyter
小小尚@1 个月前
AE脚本-AE Actions v1.1.8 操作动作记录器
开发语言·前端·javascript·jupyter·postman
赵广陆1 个月前
Jupyter和PyCharm完整集成
ide·jupyter·pycharm
营养充电站1 个月前
C++23 新特性在 CLion 中的实战体验
macos·docker·jupyter·正则表达式