| 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. |