Skip to content

Commit c662ff1

Browse files
authored
download jupyter ai packages in the image (#312)
1 parent e9044d8 commit c662ff1

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

base/scripts/onyxia-init.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,6 @@ if [[ "$DARK_MODE" == "true" ]]; then
166166
fi
167167
fi
168168

169-
# install packages for jupyter-ai
170-
if [[ "$ENABLE_JUPYTER_AI_EXTENSION" == "true" ]]; then
171-
if command -v uv &>/dev/null; then
172-
uv pip install --system --no-cache jupyter-ai langchain-ollama langchain-openai
173-
else
174-
pip install --no-cache-dir jupyter-ai langchain-ollama langchain-openai
175-
fi
176-
fi
177-
178169
# inject proxy variables
179170
env_vars=("NO_PROXY" "no_proxy" "HTTP_PROXY" "http_proxy" "HTTPS_PROXY" "https_proxy")
180171

jupyter/scripts/install-jupyterlab.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function apt_install() {
1111
}
1212

1313
if command -v uv &>/dev/null; then
14-
uv pip install --system --no-cache jupyterlab
14+
uv pip install --system --no-cache jupyterlab jupyter-ai langchain-openai
1515
else
16-
pip install --no-cache-dir jupyterlab
16+
pip install --no-cache-dir jupyterlab jupyter-ai langchain-openai
1717
fi

0 commit comments

Comments
 (0)