安装

安装

JupyDeep 已发布至 PyPI,可以通过 pip 进行安装(包括在 uv 或 conda 环境中)。

uv 安装

uv 为例,我们可以在一个名为 tutorial 的新目录中建立一个项目。

请确保您已安装 uv。如果尚未安装,请参考 uv 安装指南

$ cd tutorial
$ uv init
$ uv add jupyterlab jupydeep "jupyter-mcp-server @ git+https://github.com/yezhenqing/jupyter-mcp-server.git"

然后只需按如下方式启动 JupyterLab:

$ uv run jupyter lab --ip=0.0.0.0

此时,JupyterLab 主面板右侧边栏中应显示 JupyDeep 的图标。

conda 安装

对于 conda,您可以创建一个新环境,然后在该环境中通过 pip 安装 JupyDeep。

$ conda create -n jupydeep jupyterlab
$ conda activate jupydeep
$ (jupydeep) pip install "jupyter-mcp-server @ git+https://github.com/yezhenqing/jupyter-mcp-server.git" jupydeep

备注

The original jupyter-mcp-server rely on jupyter-server-nbmodel, which suffers from several known issues. In particular, Issue #65 prevents notebooks from executing smoothly.

无论在 uv 还是 conda 中,您都可以根据需要安装任何额外的依赖包(例如用于数据分析的 seaborn)。