Output-focused Python editor
What is pdit?
pdit lets you write regular Python files and see execution results inline, right next to the code that produced them. Edit in your browser or your favorite editor.
Quick Start
pip install "pdit[demo]"
pdit --demo With uv:
uvx --with "pdit[demo]" pdit --demo Features
- Output-focused - Results appear inline next to the code that generated them
- Just Python scripts - Work with plain
.pyfiles using standard tooling - File watching - Changes to the file on disk automatically reload in the editor
- Auto-run - Execute code automatically when the file changes
- Coding agents - Perfect companion for Claude Code, Cursor, and other AI coding tools that edit files
Rich Output
- Matplotlib - Inline plot rendering
- DataFrames - Sortable, searchable tables
- Markdown - Format text output with Markdown
- IPython display - Rich outputs via IPython.display