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

bundles / IPython 9.18.0.dev / IPython / core / interactiveshell / InteractiveShell / push

function

IPython.core.interactiveshell:InteractiveShell.push

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

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