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

Commit 18a8aa1

Browse files
Update run.sh
1 parent c45aadb commit 18a8aa1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

jupyterlab/run.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ else
3636
fi
3737

3838

39-
printf "☢️ unsetting proxy vars..."
40-
export http_proxy=http://$http_proxy
41-
#export https_proxy=https://$https_proxy
39+
printf "⚠️ setting proxy vars..."
40+
cat $HOME/.venv/share/jupyter/kernels/python3/kernel.json | jq -r \
41+
--arg http_proxy "$http_proxy" \
42+
--arg https_proxy "$https_proxy" \
43+
'.env += {"http_proxy": $http_proxy, "https_proxy": $https_proxy}' \
44+
> $HOME/.venv/share/jupyter/kernels/python3/kernel.json
45+
4246

4347
printf "👷 Starting jupyterlab in background..."
4448
printf "check logs at ${LOG_PATH}"
4549

46-
$JUPYTERPATH/jupyter-lab --no-browser \
50+
http_proxy= https_proxy= $JUPYTERPATH/jupyter-lab --no-browser \
4751
"$BASE_URL_FLAG" \
4852
--ServerApp.ip='*' \
4953
--ServerApp.port="${PORT}" \

0 commit comments

Comments
 (0)