The lab consists of eight exercises. The first two are meant to give you an introduction to the Python programming language and the Jupyter environment. We don’t expect you to already know Python, but we will assume some programming experience.
The main part of the lab are exercise 2 through 8, which will be given out in two week intervals. Here, each exercise will implement one component of a basic text search engine:
Each exercise is given as a Jupyter notebook. In case of dependencies or data, we will distribute them alongside the notebook in a folder, so you can easily import them.
Each exercise will also include a reference implementation of the previous exercises, so if at some point you cannot solve an exercise, you can still keep working on the next one!
To work on the exercises, you need to have a Jupyter environment up and running.
A simple way of managing a Python environment is Conda, which works across all platforms. You can follow the official instructions to get Conda running on your computer. You can then start Jupyter from the Anaconda Navigator.
You can run Jupyter from a Docker image that comes with all dependencies included. If you do not have Docker installed, check the Docker website for instructions.
docker run -p 8888:8888 -v $(pwd):/home/jovyan/work jupyter/minimal-notebook
If you prefer to manually manage your Python environment, you can also set up your environment like so:
python -m venv venv source venv/bin/activate pip install jupyter jupyter notebook