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

bundles / IPython 9.11.0 / IPython / core / interactiveshell / InteractiveShell / var_expand

function

IPython.core.interactiveshell:InteractiveShell.var_expand

source: /IPython/core/interactiveshell.py :3907

Signature

def   var_expand ( self cmd depth = 0 formatter = <DollarFormatter> )

Summary

Expand python variables in a string.

Extended Summary

The depth argument indicates how many frames above the caller should be walked to look for the local namespace where to expand variables.

The global namespace for expansion is always the user's interactive namespace.

Aliases

  • IPython.InteractiveShell.var_expand