02 · Python, Git, CLI, and reproducible environments¶
| Level | Effort | Prerequisites | Tier |
|---|---|---|---|
| Foundation | 14 hours | Module 01 | Essential |
This is the module that makes everything else verifiable. Until a second person can rebuild your environment from your repository and get the same result, no later claim in this course - "the model is reproducible", "the pipeline passes", "the deployment works" - can be checked.
You will create the raviride-eta repository that the next fifteen modules build on. It starts nearly empty on purpose: every significant file added later will be one you understand.
What you will be able to do¶
- Create and activate an isolated environment, and diagnose the three common reasons activation fails.
- Declare dependencies in
pyproject.toml, pin them, and explain loose versus locked dependency sets. - Prove reproducibility by rebuilding from the repository alone.
- Use branches and commits as a habit, and read a diff before committing.
- Read a traceback to its first useful line instead of its last.
Start here¶
- Read Concepts sections 1–4. These explain why a virtual environment exists, not just how to make one.
- Do Part 1 of the lab now; you need the repository for every later module.
- Finish the lab, then take the knowledge check.
Module contents¶
| Component | What it is for |
|---|---|
| Learning objectives | Objectives, evidence, and a ten-item reproducibility checklist |
| Concepts | Interpreter, PATH, isolation, dependencies, layout, Git, tracebacks |
| Worked example | Building the skeleton command by command, with real output |
| Guided lab | Create the repository, then diagnose a colleague's broken environment |
| Independent challenge | Rebuild from scratch and break the lock file deliberately |
| Knowledge check | Ten questions with reasoned answers |
| Troubleshooting | Activation, import, and pip failures with fixes |
| References | Official documentation for every tool used |
What you produce¶
raviride-eta/withpyproject.toml,src/layout,tests/,.gitignore.- A captured environment listing and a repository tree.
- A first branch and a reviewed commit.
- A short log of every error you hit and how you fixed it.
Keep the error log. It becomes evidence for the Module 03 debt register, and it is the most useful thing you will write this week.
Next¶
Module 03 · Organizing an ML project refactors training code out of a single script into this structure.