{ } Raw JSON

bundles / IPython 9.17.0 / IPython / utils / frame / extract_module_locals

function

IPython.utils.frame:extract_module_locals

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

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