{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / interactiveshell / InteractiveShell / drop_by_id

function

IPython.core.interactiveshell:InteractiveShell.drop_by_id

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

Signature

def drop_by_id(self, variables)

Summary

Remove a dict of variables from the user namespace, if they are the same as the values in the dictionary.

Extended Summary

This is intended for use by extensions: variables that they've added can be taken back out if they are unloaded, without removing any that the user has overwritten.

Parameters

variables : dict

A dictionary mapping object names (as strings) to the objects.

Aliases

  • IPython.InteractiveShell.drop_by_id

Referenced by