Show More
@@ -129,7 +129,11 b' class RichIPythonWidget(IPythonWidget):' | |||||
129 | self._append_html(self.output_sep2, True) |
|
129 | self._append_html(self.output_sep2, True) | |
130 | elif 'text/latex' in data: |
|
130 | elif 'text/latex' in data: | |
131 | self._pre_image_append(msg, prompt_number) |
|
131 | self._pre_image_append(msg, prompt_number) | |
132 | png = latex_to_png(data['text/latex'], wrap=False) |
|
132 | try: | |
|
133 | png = latex_to_png(data['text/latex'], wrap=False) | |||
|
134 | except Exception: | |||
|
135 | self.log.error("Failed to render latex: %r", data['text/latex'], exc_info=True) | |||
|
136 | png = None | |||
133 | if png is not None: |
|
137 | if png is not None: | |
134 | self._append_png(png, True) |
|
138 | self._append_png(png, True) | |
135 | self._append_html(self.output_sep2, True) |
|
139 | self._append_html(self.output_sep2, True) |
General Comments 0
You need to be logged in to leave comments.
Login now