Skip to content

Commit 49c90af

Browse files
committed
Wrap Jupyter Server with Persistent Install Location Vars
1 parent 8c06006 commit 49c90af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

start-jupyter.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ else
149149
SUBCOMMAND="lab"
150150
fi
151151

152+
# Launch Jupyter with the correct environment variables for the kernels
152153
if [[ "$LINK_ONLY" == "1" ]]; then
153-
exec jupyter "$SUBCOMMAND" "${ARGS[@]}" >/dev/null 2>&1
154+
exec env "PYTHONPATH=${PYTHONPATH}" "PIP_TARGET=${PIP_TARGET}" "R_LIBS_USER=${R_LIBS_USER}" jupyter "$SUBCOMMAND" "${ARGS[@]}" >/dev/null 2>&1
154155
else
155-
exec jupyter "$SUBCOMMAND" "${ARGS[@]}"
156+
exec env "PYTHONPATH=${PYTHONPATH}" "PIP_TARGET=${PIP_TARGET}" "R_LIBS_USER=${R_LIBS_USER}" jupyter "$SUBCOMMAND" "${ARGS[@]}"
156157
fi

0 commit comments

Comments
 (0)