File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,15 @@ if [[ "$DARK_MODE" == "true" ]]; then
163163 fi
164164fi
165165
166+ # install packages for jupyter-ai
167+ if [[ " $ENABLE_JUPYTER_AI_EXTENSION " == " true" ]]; then
168+ if command -v uv & > /dev/null; then
169+ uv pip install --system --no-cache jupyter-ai langchain-ollama langchain-openai
170+ else
171+ pip install --no-cache-dir jupyter-ai langchain-ollama langchain-openai
172+ fi
173+ fi
174+
166175# inject proxy variables
167176env_vars=(" NO_PROXY" " no_proxy" " HTTP_PROXY" " http_proxy" " HTTPS_PROXY" " https_proxy" )
168177
Original file line number Diff line number Diff line change @@ -10,14 +10,8 @@ function apt_install() {
1010 fi
1111}
1212
13- PACKAGES=(" jupyterlab" )
14-
15- if [[ " $ENABLE_JUPYTER_AI_EXTENSION " == " true" ]]; then
16- PACKAGES+=(" jupyter-ai" " langchain-ollama" " langchain-openai" )
17- fi
18-
1913if command -v uv & > /dev/null; then
20- uv pip install --system --no-cache " ${PACKAGES[@]} "
14+ uv pip install --system --no-cache jupyterlab
2115else
22- pip install --no-cache-dir " ${PACKAGES[@]} "
16+ pip install --no-cache-dir jupyterlab
2317fi
You can’t perform that action at this time.
0 commit comments