Show More
@@ -389,6 +389,9 b' class InteractiveShell(SingletonConfigurable):' | |||||
389 | displayhook_class = Type(DisplayHook) |
|
389 | displayhook_class = Type(DisplayHook) | |
390 | display_pub_class = Type(DisplayPublisher) |
|
390 | display_pub_class = Type(DisplayPublisher) | |
391 | compiler_class = Type(CachingCompiler) |
|
391 | compiler_class = Type(CachingCompiler) | |
|
392 | inspector_class = Type( | |||
|
393 | oinspect.Inspector, help="Class to use to instantiate the shell inspector" | |||
|
394 | ).tag(config=True) | |||
392 |
|
395 | |||
393 | sphinxify_docstring = Bool(False, help= |
|
396 | sphinxify_docstring = Bool(False, help= | |
394 | """ |
|
397 | """ | |
@@ -755,10 +758,12 b' class InteractiveShell(SingletonConfigurable):' | |||||
755 | @observe('colors') |
|
758 | @observe('colors') | |
756 | def init_inspector(self, changes=None): |
|
759 | def init_inspector(self, changes=None): | |
757 | # Object inspector |
|
760 | # Object inspector | |
758 |
self.inspector = |
|
761 | self.inspector = self.inspector_class( | |
759 | PyColorize.ANSICodeColors, |
|
762 | oinspect.InspectColors, | |
760 | self.colors, |
|
763 | PyColorize.ANSICodeColors, | |
761 | self.object_info_string_level) |
|
764 | self.colors, | |
|
765 | self.object_info_string_level, | |||
|
766 | ) | |||
762 |
|
767 | |||
763 | def init_io(self): |
|
768 | def init_io(self): | |
764 | # implemented in subclasses, TerminalInteractiveShell does call |
|
769 | # implemented in subclasses, TerminalInteractiveShell does call |
General Comments 0
You need to be logged in to leave comments.
Login now