Welcome to our lecture repo for the course "Data & AI in Economics" at the TU Dortmund University.
As a student you are elegible to use the Github Student program including Copilot, I suggest you sign up for it here.
The easiest way to run all notebooks locally — no Python installation or cloning required.
Prerequisites: Docker Desktop (Windows / macOS / Linux).
# 1. Download the compose file (one-time)
curl -O https://raw.githubusercontent.com/firrm/DAI/main/docker-compose.yml
# 2. Start JupyterLab (pulls the image automatically on first run)
docker compose upThen open http://localhost:8888 in your browser.
All course materials (lectures, exercises, data) are available inside the notebook file browser.
Your own files saved in the work/ folder persist between sessions via the ./my-work volume on your machine.
Note: The deep-learning notebooks
05a_deep_learningand05b_deep_learningrequire TensorFlow/Keras and will not run in this image. Use the local setup below for those.
Since we will put everything on our server, you will not need to do this. However, if you want to work on your local machine, you will need to do the following:
Git is a version control system that allows you to track changes in your code. It is a very powerful tool that is widely used in the industry. We will use it in this course to manage the code and the data. 'git' is a command line tool. You can use it in the terminal or in the command prompt. If you are not familiar with the command line, you can use a graphical user interface (GUI) for git. There are many GUIs available, but we recommend GitHub Desktop.
To install git, follow the instructions on the official website.
To clone the repository, open the terminal or the command prompt and navigate to the directory where you want to store the repository. Then run the following command:
git clone https://github.com/firrm/DAI.gitWe will use Python as the programming language for this course. Python is a very popular language for data analysis and machine learning. It has a large and active community, and there are many libraries available for data analysis, visualization, and machine learning.
To install Python, follow the instructions on the official website.
We will use UV to manage the dependencies of the project. UV is a tool for dependency management and packaging in Python. It allows you to declare the dependencies of your project in a simple and declarative way, and it will automatically install the dependencies for you. Why? Because it is 10-100x faster than pip and includes all the tools you need to manage your Python project.
To install UV, follow the instructions of your local OS
To install the dependencies of the project, run the following command in the terminal or the command prompt:
uv syncIf you want to use pip instead of poetry, you can run the following command in the terminal or the command prompt:
uv export --output-file requirements.txt
uv pip install -r requirements.txtWe will use Jupyter Notebooks to write the code. Jupyter Notebooks are a great tool for data analysis and visualization. They allow you to write and execute code, view the results, and add text and images. You can also export the notebooks to different formats, such as HTML, PDF, or slides.
To install Jupyter Notebook, follow the instructions on the official website.