Show More
@@ -255,15 +255,17 b' class RichIPythonWidget(IPythonWidget):' | |||||
255 | except KeyError: |
|
255 | except KeyError: | |
256 | if not self._svg_warning_displayed: |
|
256 | if not self._svg_warning_displayed: | |
257 | QtGui.QMessageBox.warning(self, 'Error converting PNG to SVG.', |
|
257 | QtGui.QMessageBox.warning(self, 'Error converting PNG to SVG.', | |
258 |
'Cannot convert |
|
258 | 'Cannot convert PNG images to SVG, export with PNG figures instead. ' | |
|
259 | 'If you want to export with SVG figures, add ' | |||
259 | 'to your ipython config:\n\n' |
|
260 | 'to your ipython config:\n\n' | |
260 |
'\tc.InlineBackend |
|
261 | '\tc.InlineBackend.figure_format = \'svg\'\n\n' | |
261 | 'And regenerate the figures.', |
|
262 | 'And regenerate the figures.', | |
262 | QtGui.QMessageBox.Ok) |
|
263 | QtGui.QMessageBox.Ok) | |
263 | self._svg_warning_displayed = True |
|
264 | self._svg_warning_displayed = True | |
264 |
return ("<b>Cannot convert |
|
265 | return ("<b>Cannot convert PNG images to SVG.</b> " | |
265 |
" |
|
266 | "You must export this session with PNG images. " | |
266 | "<span>c.InlineBackendConfig.figure_format = 'svg'</span> " |
|
267 | "If you want to export with SVG figures, add to your config " | |
|
268 | "<span>c.InlineBackend.figure_format = 'svg'</span> " | |||
267 | "and regenerate the figures.") |
|
269 | "and regenerate the figures.") | |
268 |
|
270 | |||
269 | # Not currently checking path, because it's tricky to find a |
|
271 | # 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