From 19e6ecf4374e5d82836d1c92b6f8f513625edc89 2013-08-19 14:05:26 From: MinRK Date: 2013-08-19 14:05:26 Subject: [PATCH] fix InlineBackend config message had wrong class name, was unclear. --- diff --git a/IPython/qt/console/rich_ipython_widget.py b/IPython/qt/console/rich_ipython_widget.py index 6a61e2e..bd12a77 100644 --- a/IPython/qt/console/rich_ipython_widget.py +++ b/IPython/qt/console/rich_ipython_widget.py @@ -255,15 +255,17 @@ class RichIPythonWidget(IPythonWidget): except KeyError: if not self._svg_warning_displayed: QtGui.QMessageBox.warning(self, 'Error converting PNG to SVG.', - 'Cannot convert a PNG to SVG. To fix this, add this ' + 'Cannot convert PNG images to SVG, export with PNG figures instead. ' + 'If you want to export with SVG figures, add ' 'to your ipython config:\n\n' - '\tc.InlineBackendConfig.figure_format = \'svg\'\n\n' + '\tc.InlineBackend.figure_format = \'svg\'\n\n' 'And regenerate the figures.', QtGui.QMessageBox.Ok) self._svg_warning_displayed = True - return ("Cannot convert a PNG to SVG. " - "To fix this, add this to your config: " - "c.InlineBackendConfig.figure_format = 'svg' " + return ("Cannot convert PNG images to SVG. " + "You must export this session with PNG images. " + "If you want to export with SVG figures, add to your config " + "c.InlineBackend.figure_format = 'svg' " "and regenerate the figures.") # Not currently checking path, because it's tricky to find a