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

Method set

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

Set the hook.

(self)

Source from the content-addressed store, hash-verified

59 return False
60
61 def set(self):
62 """Set the hook."""
63 if sys.displayhook is not self.hook:
64 self.old_hook = sys.displayhook
65 sys.displayhook = self.hook
66
67 def unset(self):
68 """Unset the hook."""

Callers 6

__enter__Method · 0.95
_input_callbackFunction · 0.80
store_inputsMethod · 0.80
store_outputMethod · 0.80
stopMethod · 0.80
haltMethod · 0.80

Calls

no outgoing calls

Tested by 1

haltMethod · 0.64