Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions appendix
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ RUN --mount=type=secret,id=gcp_key,required=false,uid=1000 \
ENV GOOGLE_APPLICATION_CREDENTIALS=${NB_PYTHON_PREFIX}/etc/gcp/mothership-key.json

# ---------------------------------------------------------------------------
# Upgrade Jupyter AI to the 3.2.0a0 pre-release (PyPI-only) using uv.
# Upgrade Jupyter AI to the 3.2.0a1 pre-release (PyPI-only) using uv.
# MUST stay after the `mamba env create` above, which recreates the prefix from
# the lockfile. conda-forge only ships stable jupyter-ai ~=3.0; the a0
# the lockfile. conda-forge only ships stable jupyter-ai ~=3.0; the a1
# pre-release and its pre-release dependency family live only on PyPI. uv (from
# environment.yml / the lockfile) resolves the whole pre-release graph in a
# single pass, so the env moves atomically to a consistent state instead of the
# half-upgraded mess plain pip tends to leave behind.
RUN ${NB_PYTHON_PREFIX}/bin/uv pip install \
--python ${NB_PYTHON_PREFIX}/bin/python \
--prerelease=allow \
"jupyter-ai==3.2.0a0" \
"jupyter-ai==3.2.0a1" \
&& ${NB_PYTHON_PREFIX}/bin/python -c "import importlib.metadata as m; print('installed jupyter-ai', m.version('jupyter-ai'))"

2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies:
# uv is used by the appendix post-build step to install the jupyter-ai
# pre-release from PyPI (see install-jupyter-ai-prerelease.sh).
- uv
# jupyter-ai is installed as a pre-release (3.2.0a0) from PyPI via uv in the
# jupyter-ai is installed as a pre-release from PyPI via uv in the
# appendix (see install-jupyter-ai-prerelease.sh), because conda-forge does
# not yet ship 3.2.x. Keep this commented out until Jupyter AI v3.2.0 is on
# conda-forge, then re-enable it here (bumped to ~=3.2.0) and drop the
Expand Down