Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add uv for users #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions SetupPrivateJupyterLab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivukotic is it correct that if we want something to be accessible to the final end user (and in this case also modify their ~/.bash_profile that all of that code needs to exist in SetupPrivateJupyterLab.sh? I believe this is the case, but I forget how this all actually works at request time.


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