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

bundles / IPython 9.12.0 / IPython / core / interactiveshell / InteractiveShell / del_var

function

IPython.core.interactiveshell:InteractiveShell.del_var

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

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