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

bundles / IPython 9.5.0 / IPython / core / interactiveshell / InteractiveShell / push

function

IPython.core.interactiveshell:InteractiveShell.push

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

Signature

def   push ( self variables interactive = True )

Summary

Inject a group of variables into the IPython user namespace.

Parameters

variables : dict, str or list/tuple of str

The variables to inject into the user's namespace. If a dict, a simple update is done. If a str, the string is assumed to have variable names separated by spaces. A list/tuple of str can also be used to give the variable names. If just the variable names are give (list/tuple/str) then the variable values looked up in the callers frame.

interactive : bool

If True (default), the variables will be listed with the who magic.

Aliases

  • IPython.InteractiveShell.push

Referenced by