Skip to main content

Module scope

Module scope 

Source
Expand description

Port of upstream rich/scope.py.

render_scope draws a mapping of variable names to values (upstream passes locals()) as a two-column grid of name = and the value’s Pretty repr, in a fitted panel. Rust has no reflection over a scope, so the caller passes the names and PrettyValues.

Structs§

ScopeOptions
The keyword arguments of render_scope.

Functions§

render_scope
Render variables in a scope: each name, =, and its pretty repr, in a panel. Port of rich.scope.render_scope.