Manual
Everything you need to know about pdit
Getting Started
pdit is an interactive Python editor that displays execution results inline.
- Like notebooks: Results appear inline with code
- Like a REPL: Work with regular .py files
- Unlike both: No cell management needed
Quick Start
pip install pdit
pdit example.py Output
Markdown
Top-level string output renders as Markdown, so headings, lists, and emphasis display cleanly.
HTML
Rich HTML output is supported for objects that implement _repr_html_(); see note: IPython.display.display.
IPython display
IPython display objects render inline; see IPython.display for details.
DataFrames
Pandas and Polars DataFrames render as interactive tables automatically.
Plots
Matplotlib figures display inline. Call plt.show().
How-to
Suppress output with a trailing semicolon
Like IPython, pdit suppresses inline output if a statement ends with ;.
import pandas as pd
df = pd.read_csv("data.csv");