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

Commit d044141

Browse files
Update run.sh
1 parent 06fc6a6 commit d044141

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

jupyterlab/run.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ fi
3838

3939

4040
printf "⚠️ setting proxy vars..."
41-
cat $HOME/.local/share/jupyter/kernels/aicentre/kernel.json | jq -r --arg http_proxy "$http_proxy" --arg https_proxy "$https_proxy" '.env += {"http_proxy": $http_proxy, "https_proxy": $https_proxy}'
42-
41+
cat $HOME/.local/share/jupyter/kernels/aicentre/kernel.json | jq -r \
42+
--arg http_proxy "$http_proxy" \
43+
--arg https_proxy "$https_proxy" \
44+
'.env += {"http_proxy": $http_proxy, "https_proxy": $https_proxy}' \
45+
> tmp.json
46+
47+
printf "➡️ updating kernelspec..."
48+
mv tmp.json $HOME/.local/share/jupyter/kernels/aicentre/kernel.json
4349

4450
printf "👷 Starting jupyterlab in background..."
4551
printf "check logs at ${LOG_PATH}"

0 commit comments

Comments
 (0)