Idea · Sep 7, 2026
Notional Machine Animator
A step-through code execution visualizer where students see memory boxes, the call stack, and heap arrows update expression by expression, then compare their predicted model to what actually happened.
What it would do
Notional Machine Animator accepts a short Python program and builds an animated execution trace: variables appear as labeled memory boxes, function calls push named frames onto a visible call stack, and list or dict values appear as arrows pointing to heap objects. Students step forward one expression at a time and can pause to type or draw their prediction before each step; the tool then highlights where their mental model diverges from actual execution. Instructors can author 'misconception challenge' snippets centered on classic surprises (aliasing, mutable default arguments, scoping rules) and share them via URL. At the end of a trace, a side-by-side 'my model vs. reality' diff summarizes every point of divergence.
Key features
- Expression-by-expression animated execution with named memory boxes and a visible call stack
- Predict-before-reveal mode: students submit their expected state before each step
- Misconception challenge library: instructors author and share tricky snippets via URL
- End-of-trace divergence summary comparing student prediction to actual execution