Prepare Your Computer#

Although we will also use computing resources of the University of Leipzig’s Computing Center, a lot of the practical work will be done locally on your computer. In this section, you will find information on how to prepare your computer for the training. Please read everything carefully first and then follow the individual steps.

What you need#

  • Your laptop with internet access

  • Administrator rights to install software

  • The terminal:

    • Windows: CommandPrompt or PowerShell

    • macOS/Linux: Terminal

1. Install and verify Python#

  • If Python is not already available on your system (see verify step below), install it:
    https://www.python.org/downloads/ (version 3.11 or higher)

  • In the Windows installer, make sure that “Add Python to PATH” is checked

  • After installation, verify in your terminal (shall display the version):

python --version
  • If python is not found, try:

python3 --version

2. Install uv#

uv --version

3. Create a virtual environment (venv)#

  • Create a folder ai4medicine, e.g. on your desktop

  • Download the file pyproject.toml, save it in this folder

  • Open the terminal and navigate to this folder:

cd /path/to/ai4medicine
  • Create a venv using uv

uv sync
  • This creates a local virtual environment in ai4medicine/.venv (hidden folder), installs the Python packages defined in pyproject.toml, and finally creates the file uv.lock.

4. Start JupyterLab from the venv#

  • As a test, start JupyterLab, a web-based interactive development environment for data science that was already installed via uv in the venv

  • While still in the terminal and in the folder ai4medicine:

uv run jupyter lab
  • Your browser should now open JupyterLab

  • If it doesn’t, copy the URL displayed in the terminal into your browser
    (should start with http://localhost:8888/lab?token=...)

  • To stop JupyterLab, press in the terminal:

Ctrl + C

If everything worked: Congratulations! You are done and prepared for the training school.

If you encounter any problems, please reach out via email

Download the Files for the Practical Exercise#

A few days before the start of the training school, the notebooks and files for the practical exercises will be made available as a ZIP file here.