Week 02 — Environments and Dependency Management
The first thing that breaks: dependencies. The current toolchain and the patterns that survive in production.
Week 02 — Environments and Dependency Management
The first thing that breaks: dependencies. The current toolchain and the patterns that survive in production.
Lecture
The dependency hell problem · virtualenv, conda, mamba, pipenv, poetry, uv · pyproject.toml and lockfiles · devcontainers · Docker as an environment · trade-offs (reproducibility vs speed).
Code lab
Lab 1 — Reproducible Python environment
Set up a project with uv + pyproject.toml + lockfile + pre-commit hooks. Add a Dockerfile that reproduces the same environment. Verify identical behavior on host and container.
Notebook: lab01-environments.ipynb · Dataset: —
Reference text for this week: chapter 02 of the bilingual notes — EN PDF · FR PDF.