Skip to content

Commit 5ab52fe

Browse files
feat: Add uv for users
* Globally install uv as the local user, so user can use uv to install packages efficiently later if desired. - c.f. https://github.com/astral-sh/uv
1 parent c10b9e5 commit 5ab52fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SetupPrivateJupyterLab.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ if [ "$OWNER" != "" ] && [ "$CONNECT_GROUP" != "" ]; then
1919
cd /home/$OWNER
2020

2121
chown -R $OWNER: /venv
22-
22+
# Install https://github.com/astral-sh/uv for users editing environment later
23+
curl -LsSf https://astral.sh/uv/install.sh | sh
24+
2325
unset JUPYTER_PATH
2426
which jupyter
2527
unset JUPYTER_CONFIG_DIR
2628
ls /root/.jupyter/jupyter_notebook_config.py
2729
cd /home/$OWNER
28-
30+
2931
# Invoke Jupyter lab as the user
3032
su $OWNER -c "jupyter lab --ServerApp.root_dir=/home/${OWNER} --ServerApp.port=9999 --ServerApp.ip='0.0.0.0' --no-browser --config=/root/.jupyter/jupyter_notebook_config.py"
3133

32-
fi
34+
fi

0 commit comments

Comments
 (0)