CoMPhy Lab · Open course
Think in Python.
Learn to turn a physical question into trustworthy computation and a reproducible scientific figure. Syntax is the tool. Reasoning is the course.
One source, two speeds
Choose depth, not a different course.
The quick route selects seven lessons from the full route. There is no second nano repository to drift out of date.
Quick route
For students who have already written some Python and need the CoMPhy habits: functions, arrays, debugging, schemas, tools, and the log lab.
See the seven lessons →Full route
For a first serious encounter with Python. Start with the short preflight, then add control flow, plotting, verification, collaboration, and the capstone.
See the complete route →Equation → evidence
A scientific-computing spine.
Each lesson names the decision you are learning to make and the artefact you will leave behind.
Taste is teachable
What good code feels like.
radius_m beats r; shape and units are part of the state.Start with the question