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

Method set

IPython/core/display_trap.py:65–69  ·  view source on GitHub ↗

Set the hook.

(self)

Source from the content-addressed store, hash-verified

63 return self._nested_level != 0
64
65 def set(self):
66 """Set the hook."""
67 if sys.displayhook is not self.hook:
68 self.old_hook = sys.displayhook
69 sys.displayhook = self.hook
70
71 def unset(self):
72 """Unset the hook."""

Callers 4

__enter__Method · 0.95
store_inputsMethod · 0.80
store_outputMethod · 0.80
stopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected