Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 05e93db

Browse files
Update run.sh
1 parent 18a8aa1 commit 05e93db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jupyterlab/run.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ if ! command -v jupyter-lab > /dev/null 2>&1; then
2626
case $INSTALLER in
2727
uv)
2828
uv venv --seed
29-
uv pip install -q jupyterlab \
29+
uv pip install ipykernel jupyterlab
30+
uv run ipython kernel install --user --env VIRTUAL_ENV $(pwd)/.venv --name=aicentre \
3031
&& printf "%s\n" "🥳 jupyterlab has been installed"
3132
JUPYTERPATH="$HOME/.venv/bin/"
3233
;;
@@ -37,11 +38,11 @@ fi
3738

3839

3940
printf "⚠️ setting proxy vars..."
40-
cat $HOME/.venv/share/jupyter/kernels/python3/kernel.json | jq -r \
41+
cat $HOME/.local/share/jupyter/kernels/aicentre/kernel.json | jq -r \
4142
--arg http_proxy "$http_proxy" \
4243
--arg https_proxy "$https_proxy" \
4344
'.env += {"http_proxy": $http_proxy, "https_proxy": $https_proxy}' \
44-
> $HOME/.venv/share/jupyter/kernels/python3/kernel.json
45+
> $HOME/.local/share/jupyter/kernels/aicentre/kernel.json
4546

4647

4748
printf "👷 Starting jupyterlab in background..."

0 commit comments

Comments
 (0)