Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 1.87 KB

README.org

File metadata and controls

39 lines (36 loc) · 1.87 KB

pyinspect.el

https://melpa.org/packages/pyinspect-badge.svg

Major mode for inspecting objects in a running Python 3.3+ process 🥴

./demo.gif

Setup

After installing from MELPA:

(require 'pyinspect)
(define-key python-mode-map (kbd "C-c i") #'pyinspect-inspect-at-point)

Usage

Eval a Python buffer in a Python process (usually C-c C-c once you’re in the buffer), then place your cursor on a variable and hit C-c i to open the inspection buffer

Default keybindings

KeyAction
i / l / RETInspect field at point
u / hGo back to parent inspection buffer
TABNext field
S-TABPrevious field
n / jNext line
p / kPrevious line
qKill all inspection buffers

Background

I wrote this package after rustling with Emacs to try and get a REPL-driven development workflow in Python. See this blog post for an idea of how to integrate this package into your cycle :)