From 5ab52fe988c19e5bf48d6157460e9c016b964c53 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Mon, 29 Apr 2024 00:20:54 -0500 Subject: [PATCH] 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 --- SetupPrivateJupyterLab.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SetupPrivateJupyterLab.sh b/SetupPrivateJupyterLab.sh index 91b938d..7a13a84 100644 --- a/SetupPrivateJupyterLab.sh +++ b/SetupPrivateJupyterLab.sh @@ -19,14 +19,16 @@ if [ "$OWNER" != "" ] && [ "$CONNECT_GROUP" != "" ]; then cd /home/$OWNER chown -R $OWNER: /venv - + # Install https://github.com/astral-sh/uv for users editing environment later + curl -LsSf https://astral.sh/uv/install.sh | sh + unset JUPYTER_PATH which jupyter unset JUPYTER_CONFIG_DIR ls /root/.jupyter/jupyter_notebook_config.py cd /home/$OWNER - + # Invoke Jupyter lab as the user 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" -fi +fi