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

Method _clear_warning_registry

IPython/core/interactiveshell.py:1076–1081  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1074 self.events.register('post_run_cell', func)
1075
1076 def _clear_warning_registry(self):
1077 # clear the warning registry, so that different code blocks with
1078 # overlapping line number ranges don't cause spurious suppression of
1079 # warnings (see gh-6611 for details)
1080 if "__warningregistry__" in self.user_global_ns:
1081 del self.user_global_ns["__warningregistry__"]
1082
1083 #-------------------------------------------------------------------------
1084 # Things related to the "main" module

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected