| 892 | self.configurables.append(self.data_pub) |
| 893 | |
| 894 | def init_displayhook(self): |
| 895 | # Initialize displayhook, set in/out prompts and printing system |
| 896 | self.displayhook = self.displayhook_class( |
| 897 | parent=self, |
| 898 | shell=self, |
| 899 | cache_size=self.cache_size, |
| 900 | ) |
| 901 | self.configurables.append(self.displayhook) |
| 902 | # This is a context manager that installs/removes the displayhook at |
| 903 | # the appropriate time. |
| 904 | self.display_trap = DisplayTrap(hook=self.displayhook) |
| 905 | |
| 906 | @staticmethod |
| 907 | def get_path_links(p: Path): |