Installation

  1. Python≥3.6 und pip installieren:

    $ sudo apt update
    $ sudo apt install python3
    $ python3 -V
    Python 3.10.6
    $ sudo apt install python3-pip
    
  2. Service-User jupyter erstellen:

    $ sudo useradd -s /bin/bash -rmd /srv/jupyter jupyter
    
  3. Zum Service-User jupyter wechseln:

    $ sudo -u jupyter -i
    
  4. uv installieren:

    $  curl -LsSf https://astral.sh/uv/install.sh | sh
    
  5. Automatische Shell-Vervollständigung aktivieren:

    $ echo 'eval "$(uv generate-shell-completion bash)"' >> ~/.bashrc
    
  6. Virtuelle Umgebung erstellen und JupyterHub installieren:

    $ uv init --package jupyterhub_env
    $ cd jupyterhub_env
    $ uv add jupyterhub
    
  7. nodejs und npm installieren:

    $ sudo apt install nodejs npm
    $ node -v
    v23.3.0
    $ npm -v
    10.9.0
    
  8. Installieren des HTTP-Proxy:

    $ sudo npm install -g configurable-http-proxy
    
  9. Wenn JupyterLab und Notebook in derselben Umgebung laufen sollen, müssen diese ebenfalls hier installiert werden:

    $  uv add jupyterlab notebook
    
  10. Testen der Installation:

    $  uv run jupyterhub -h
    $  configurable-http-proxy -h
    
  11. 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.