Skip to content

Commit 703acd4

Browse files
committed
Jupyter: Only pass the --LabApp.default_url flag if we have something to pass it.
1 parent 721be2e commit 703acd4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

brev/jupyter-start.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44

55
mkdir -p /accelerated-computing-hub/logs
66

7-
exec python -m jupyter lab --LabApp.default_url="${1}"
7+
ARGS=""
8+
if [ -n "${1}" ]; then
9+
ARGS="--LabApp.default_url=${1}"
10+
fi
11+
12+
exec python -m jupyter lab ${ARGS}

0 commit comments

Comments
 (0)