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
pythonis not found, try:
python3 --version
2. Install uv#
uvis a fast and convinient tool for Python package and project managementInstall
uv: https://docs.astral.sh/uv/getting-started/installation/After installation, verify in your terminal:
uv --version
3. Create a virtual environment (venv)#
Create a folder
ai4medicine, e.g. on your desktopDownload the file
pyproject.toml, save it in this folderOpen 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 inpyproject.toml, and finally creates the fileuv.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
uvin the venvWhile 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 withhttp://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.