steps-widget
Jupyter widget and CLI that trace Python expression evaluation step by step.
%%steps-- a cell magic (registered byimport steps_widget) that renders the substitution/reduction trace of any# steps-tagged statement as a widget below the cell.print-steps-- the command-line equivalent:print-steps student_script.pyprints the same trace to stderr for every tagged line in a script.
Tag convention: append # steps (or # PRINT STEPS, #PRINT-STEPS,
# printsteps, ...) to a statement to have it evaluated one operation at a time
instead of all at once. The tag is case-insensitive and the whitespace in it is
free -- #steps, # STEPS and # pRint steps all work; see
steps_widget.print_steps._TAG_RE for the exact pattern.
import steps_widget
%%steps
x = 7
y = 5
z = x * y + 4 # steps
Requires Python 3.10 through 3.13 -- the stepper dispatches on CPython
bytecode opcode names, which change across these versions; each is handled by
its own dispatch table (see CLAUDE.md).
pip install steps-widget
# or
conda install -c munch-group steps-widget
See the docs for more.
Initial set up
pixi run init
Get updates to upstream fork
Add upstream if not already added
git remote add upstream https://github.com/munch-group/steps-widget.git
Fetch upstream changes
git fetch upstream
Either rebase your changes on top of upstream (cleaner history)
git rebase upstream/main
Or, merge upstream into your fork (preserves history)
git merge upstream/main
If you want to see what's changed upstream before applying:
git log HEAD..upstream/main
See the actual diff
git diff HEAD...upstream/main
Then push your updated fork:
git push origin main
If you rebased and need to force push
git push origin main --force-with-lease
Metadata
Release files for steps-widget 0.2.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| steps_widget-0.2.11.tar.gz | 448.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| steps_widget-0.2.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 484.0 kB
Release files / steps_widget-0.2.11.tar.gz
| Download URL | steps_widget-0.2.11.tar.gz |
|---|---|
| Size | 448.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df9af4ff150654ba7cd05f7fb9319c6d3fbbcbf9825dbade7fda9427db743f22
|
|
BLAKE2b-256 checksum How to use checksums |
2ff619960a2451d5beaa4cee670952fd8e832fbed787c91ec0322d8646043b00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / steps_widget-0.2.11-py3-none-any.whl
| Download URL | steps_widget-0.2.11-py3-none-any.whl |
|---|---|
| Size | 35.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c2123d22da9bae8a49d7577ccd75336af6ca6474d3db7663bfc4efae04cece9
|
|
BLAKE2b-256 checksum How to use checksums |
4ce283620c446716b5b9bebdc9c0e203ce958887c7906f40662c42d8b07f44e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for steps-widget 0.2.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.