##// END OF EJS Templates
terminal IPython display formatter is plain-text-only...
Min RK -
Show More
@@ -162,6 +162,11 b' class TerminalInteractiveShell(InteractiveShell):'
162 162 else:
163 163 toggle_set_term_title(False)
164 164
165 def init_display_formatter(self):
166 super(TerminalInteractiveShell, self).init_display_formatter()
167 # terminal only supports plain text
168 self.display_formatter.active_types = ['text/plain']
169
165 170 def init_prompt_toolkit_cli(self):
166 171 self._app = None
167 172 if self.simple_prompt:
@@ -95,6 +95,11 b' class InteractiveShellTestCase(unittest.TestCase):'
95 95 ip.input_splitter.python_line_transforms.remove(transformer)
96 96 ip.input_transformer_manager.python_line_transforms.remove(transformer)
97 97
98 def test_plain_text_only(self):
99 ip = get_ipython()
100 formatter = ip.display_formatter
101 assert formatter.active_types == ['text/plain']
102
98 103
99 104 class SyntaxErrorTransformer(InputTransformer):
100 105 def push(self, line):
General Comments 0
You need to be logged in to leave comments. Login now