{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / interactiveshell / InteractiveShell / del_var

function

IPython.core.interactiveshell:InteractiveShell.del_var

source: /dev/ipython/IPython/core/interactiveshell.py:1562

Signature

def del_var(self, varname, by_name = False)

Summary

Delete a variable from the various namespaces, so that, as far as possible, we're not keeping any hidden references to it.

Parameters

varname : str

The name of the variable to delete.

by_name : bool

If True, delete variables with the given name in each namespace. If False (default), find the variable in the user namespace, and delete references to it.

Aliases

  • IPython.InteractiveShell.del_var