Installation¶
Python≥3.6 und pip installieren:
$ sudo apt update $ sudo apt install python3 $ python3 -V Python 3.10.6 $ sudo apt install python3-pip
Service-User
jupyter
erstellen:$ sudo useradd -s /bin/bash -rmd /srv/jupyter jupyter
Zum Service-User
jupyter
wechseln:$ sudo -u jupyter -i
uv installieren:
$ curl -LsSf https://astral.sh/uv/install.sh | sh
Automatische Shell-Vervollständigung aktivieren:
$ echo 'eval "$(uv generate-shell-completion bash)"' >> ~/.bashrc
Virtuelle Umgebung erstellen und JupyterHub installieren:
$ uv init --package jupyterhub_env $ cd jupyterhub_env $ uv add jupyterhub
nodejs
undnpm
installieren:$ sudo apt install nodejs npm $ node -v v23.3.0 $ npm -v 10.9.0
Installieren des HTTP-Proxy:
$ sudo npm install -g configurable-http-proxy
Wenn JupyterLab und Notebook in derselben Umgebung laufen sollen, müssen diese ebenfalls hier installiert werden:
$ uv add jupyterlab notebook
Testen der Installation:
$ uv run jupyterhub -h $ configurable-http-proxy -h
Starten des JupyterHub:
$ uv run jupyterhub ... [I 2025-01-10 18:07:29.993 JupyterHub app:3770] JupyterHub is now running at http://:8000
Mit ctrl-c könnt ihr den Prozess wieder beenden.