Python Un-Notebook
An output-focused Python editor for plain .py files.
What is pdit?
Built for plain scripts. Run regular .py files statement by statement and see output inline beside the code that produced it. Keep notebook-style iteration without cells, notebook files, or conversion steps.
Why Un-Notebook?
- Expressions, not cells - Top-level expressions render by default, so intermediate values stay visible
- Just Python files - Use standard tooling, version control, and editor workflows on plain
.pyscripts - Output beside source - Tables, plots, Markdown, and rich displays stay anchored to the lines that produced them
Quick Start
pip install "pdit[demo]"
pdit --demo With uv:
uvx --with "pdit[demo]" pdit --demo Workflow Features
- File watching - Changes to the file on disk automatically reload in the editor
- Auto-run - Execute code automatically when the file changes
- Suppress output - End a statement with
;to hide inline output when needed - Agent workflows - Keep pdit open while Claude Code, Cursor, or similar tools edit your script
Rich Output
- Matplotlib - Inline plot rendering
- DataFrames - Sortable, searchable tables
- Markdown - Format text output with Markdown
- IPython display - Rich outputs via IPython.display