MCPcopy Create free account
hub / github.com/ipython/ipython / all_ns_refs

Method all_ns_refs

IPython/core/interactiveshell.py:1403–1410  ·  view source on GitHub ↗

Get a list of references to all the namespace dictionaries in which IPython might store a user-created object. Note that this does not include the displayhook, which also caches objects from the output.

(self)

Source from the content-addressed store, hash-verified

1401
1402 @property
1403 def all_ns_refs(self):
1404 """Get a list of references to all the namespace dictionaries in which
1405 IPython might store a user-created object.
1406
1407 Note that this does not include the displayhook, which also caches
1408 objects from the output."""
1409 return [self.user_ns, self.user_global_ns, self.user_ns_hidden] + \
1410 [m.__dict__ for m in self._main_mod_cache.values()]
1411
1412 def reset(self, new_session=True):
1413 """Clear all internal namespaces, and attempt to release references to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected