mpylab.tools.runtime_introspection module

Runtime introspection helpers for dynamic measurement scripts.

mpylab.tools.runtime_introspection.get_var_from_nearest_outerframe(varstr)

Lookup a variable or mapping key by name in nearest outer stack frames.

This helper supports long-standing dynamic script and autosave workflows where values are referred to by name instead of being passed explicitly. New APIs should prefer explicit parameters where possible.

mpylab.tools.runtime_introspection.interactive(obj=None, banner=None)

Start an interactive Python shell with the object’s namespace.

This is a legacy terminal-debug helper. It still works with Python 3 via code.interact(), but normal application code should prefer explicit diagnostics or debugger integration.