##// END OF EJS Templates
remove HTML repr support from the qtconsole...
MinRK -
Show More
@@ -226,13 +226,7 b' class IPythonWidget(FrontendWidget):'
226 content = msg['content']
226 content = msg['content']
227 prompt_number = content.get('execution_count', 0)
227 prompt_number = content.get('execution_count', 0)
228 data = content['data']
228 data = content['data']
229 if 'text/html' in data:
229 if 'text/plain' in data:
230 self._append_plain_text(self.output_sep, True)
231 self._append_html(self._make_out_prompt(prompt_number), True)
232 html = data['text/html']
233 self._append_plain_text('\n', True)
234 self._append_html(html + self.output_sep2, True)
235 elif 'text/plain' in data:
236 self._append_plain_text(self.output_sep, True)
230 self._append_plain_text(self.output_sep, True)
237 self._append_html(self._make_out_prompt(prompt_number), True)
231 self._append_html(self._make_out_prompt(prompt_number), True)
238 text = data['text/plain']
232 text = data['text/plain']
@@ -256,10 +250,7 b' class IPythonWidget(FrontendWidget):'
256 metadata = msg['content']['metadata']
250 metadata = msg['content']['metadata']
257 # In the regular IPythonWidget, we simply print the plain text
251 # In the regular IPythonWidget, we simply print the plain text
258 # representation.
252 # representation.
259 if 'text/html' in data:
253 if 'text/plain' in data:
260 html = data['text/html']
261 self._append_html(html, True)
262 elif 'text/plain' in data:
263 text = data['text/plain']
254 text = data['text/plain']
264 self._append_plain_text(text, True)
255 self._append_plain_text(text, True)
265 # This newline seems to be needed for text and html output.
256 # This newline seems to be needed for text and html output.
General Comments 0
You need to be logged in to leave comments. Login now