Show More
@@ -231,6 +231,10 b' class RichIPythonWidget(IPythonWidget):' | |||||
231 | try: |
|
231 | try: | |
232 | svg = str(self._name_to_svg_map[match.group("name")]) |
|
232 | svg = str(self._name_to_svg_map[match.group("name")]) | |
233 | except KeyError: |
|
233 | except KeyError: | |
|
234 | QtGui.QMessageBox.warning(self, 'Error converting PNG to SVG.', | |||
|
235 | 'Cannot convert a PNG to SVG. To fix this, add this to your ipython config:\n' | |||
|
236 | 'c.InlineBackendConfig.figure_format = \'svg\'', | |||
|
237 | QtGui.QMessageBox.Ok) | |||
234 | return "<b>Cannot convert a PNG to SVG. </b>To fix this, add this to your config: <span>c.InlineBackendConfig.figure_format = 'svg'</span>" |
|
238 | return "<b>Cannot convert a PNG to SVG. </b>To fix this, add this to your config: <span>c.InlineBackendConfig.figure_format = 'svg'</span>" | |
235 |
|
239 | |||
236 | # Not currently checking path, because it's tricky to find a |
|
240 | # Not currently checking path, because it's tricky to find a |
General Comments 0
You need to be logged in to leave comments.
Login now