DF Viewer
A VS Code extension for inspecting pandas DataFrames in an interactive grid during Python debugging sessions. Powered by Tabulator.
Features
- Interactive grid viewer — View DataFrame contents in a sortable, filterable Tabulator table directly inside VS Code.
- Range selection — Select cells by click-and-drag, then copy with Ctrl+C. Column and row range selection supported.
- Copy All — Click the Copy All button to copy all visible rows (with headers) as TSV to the clipboard.
- Command Palette — Open the viewer via
Ctrl+Shift+P → Show DF Viewer, then type any variable name or expression to inspect.
- Context menu integration — Right-click a variable in the Debug → Variables pane and select Inspect in DF Viewer to view it instantly.
- Theme aware — Automatically switches between light and dark Tabulator themes to match your VS Code theme.
- Live debug session awareness — The viewer automatically detects when execution is paused so you can inspect the current state of your data.
Usage
Show DF Viewer
- Start a Python debug session.
- Press
Ctrl+Shift+P and run Show DF Viewer.
- Enter a variable name or pandas expression in the input box and click Inspect to display the result in the grid.
Inspect from Debug Variables
- While stopped at a breakpoint, expand the Variables section in the Debug sidebar.
- Right-click a DataFrame variable and select Inspect in DF Viewer.
Requirements
- Python 3 with the debugpy debugger.
Extension Commands
| Command |
Description |
Show DF Viewer |
Open the DataFrame grid viewer panel |
Inspect in DF Viewer |
Inspect the selected debug variable in the grid viewer |
| |