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

Method init_displayhook

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

Source from the content-addressed store, hash-verified

878 self.configurables.append(self.data_pub)
879
880 def init_displayhook(self):
881 # Initialize displayhook, set in/out prompts and printing system
882 self.displayhook = self.displayhook_class(
883 parent=self,
884 shell=self,
885 cache_size=self.cache_size,
886 )
887 self.configurables.append(self.displayhook)
888 # This is a context manager that installs/revmoes the displayhook at
889 # the appropriate time.
890 self.display_trap = DisplayTrap(hook=self.displayhook)
891
892 def init_virtualenv(self):
893 """Add a virtualenv to sys.path so the user can import modules from it.

Callers 1

__init__Method · 0.95

Calls 1

DisplayTrapClass · 0.90

Tested by

no test coverage detected