MCPcopy Index your code
hub / github.com/ipython/ipython / __enter__

Method __enter__

IPython/core/display_trap.py:48–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 self._nested_level = 0
47
48 def __enter__(self):
49 if self._nested_level == 0:
50 self.set()
51 self._nested_level += 1
52 return self
53
54 def __exit__(self, type, value, traceback):
55 if self._nested_level == 1:

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected