This is a development version (9.15.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.15.0.dev / IPython / utils / frame / extract_module_locals

function

IPython.utils.frame:extract_module_locals

source: /dev/ipython/IPython/utils/frame.py:92

Signature

def extract_module_locals(depth: int = 0) → tuple[ModuleType, dict[str, Any]]

Summary

Returns (module, locals) of the function depth frames away from the caller

Aliases

  • IPython.extract_module_locals