.md →
LiveEdit API#
Bases: AnyWidget
Read-only function trace widget for inspecting one Python run.
LiveEdit.inspect_run(fn, *args, **kwargs) is the primary constructor for
v1. The widget stores the original Python args privately and only syncs
repr-based trace data to the browser, which keeps future editable code
updates possible without serializing arbitrary Python objects.
Source code in wigglystuff/live_edit.py
Synced traitlets#
| Traitlet | Type | Notes |
|---|---|---|
code |
str |
Source code for the traced function. This is the future live-edit source of truth. |
trace |
dict |
Structured setup values, loop passes, nested child loops, and returned value. |
annotations |
dict |
Static line/token metadata used by the browser for hover linking. |
error |
dict or None |
Parse, runtime, or argument mismatch error payload; None when the run succeeds. |
editable |
bool |
Reserved for the future browser editor mode. Defaults to False. |
theme |
str |
"auto", "light", or "dark". |
width |
int |
Widget width in pixels. |
height |
int |
Maximum widget height in pixels. |