You are viewing an older version (9.2.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.2.0 / IPython / utils / frame / extract_vars_above

function

IPython.utils.frame:extract_vars_above

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

Signature

def extract_vars_above(*names: list[str])

Summary

Extract a set of variables by name from another frame.

Extended Summary

Similar to extractVars(), but with a specified depth of 1, so that names are extracted exactly from above the caller.

This is simply a convenience function so that the very common case (for us) of skipping exactly 1 frame doesn't have to construct a special dict for keyword passing.

Aliases

  • IPython.utils.frame.extract_vars_above