feat: add interactive Python execution stepper and notional machine state visualizer - #92
Open
editor-shannu wants to merge 10 commits into
Open
feat: add interactive Python execution stepper and notional machine state visualizer#92editor-shannu wants to merge 10 commits into
editor-shannu wants to merge 10 commits into
Conversation
…nd visual state simulator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds PyBe TraceLab, an interactive code execution and state inspection interface that allows learners to step through Python code line-by-line, observe live memory state changes, and engage in Socratic state prediction before code executes.
Problem Statement
When learning Python, beginners often encounter the "hidden state illusion" where code on screen is static, but runtime memory state is actively mutating. Previously, PyBe only generated code without an interactive way to inspect memory registers, variable lifetimes, or step-by-step branch evaluations.
Key Features
0.5x,1x,2x).int,float,str,list,dict,bool), current values, and mutation highlights showing previous vs. updated values.Verification & Testing
npm run build --prefix client(passed with 0 errors).npm run seed --prefix server(seeded 30 scenarios).POST /api/tracer/tracereturns structured execution steps and variable snapshots.POST /api/tracer/predictaccurately scores prediction answers.