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

Method __exit__

IPython/core/display_trap.py:54–59  ·  view source on GitHub ↗
(self, type, value, traceback)

Source from the content-addressed store, hash-verified

52 return self
53
54 def __exit__(self, type, value, traceback):
55 if self._nested_level == 1:
56 self.unset()
57 self._nested_level -= 1
58 # Returning False will cause exceptions to propagate
59 return False
60
61 def set(self):
62 """Set the hook."""

Callers

nothing calls this directly

Calls 1

unsetMethod · 0.95

Tested by

no test coverage detected