From c7e190dab47875a958ca022ea953e6bed84b238d 2012-05-17 19:00:58 From: Ian Murray Date: 2012-05-17 19:00:58 Subject: [PATCH] Fixed #735. More useful error message in html output --- diff --git a/IPython/frontend/qt/console/rich_ipython_widget.py b/IPython/frontend/qt/console/rich_ipython_widget.py index 9570f01..18edd49 100644 --- a/IPython/frontend/qt/console/rich_ipython_widget.py +++ b/IPython/frontend/qt/console/rich_ipython_widget.py @@ -231,7 +231,7 @@ class RichIPythonWidget(IPythonWidget): try: svg = str(self._name_to_svg_map[match.group("name")]) except KeyError: - return "Couldn't find image %s" % match.group("name") + return "Cannot convert a PNG to SVG. To fix this, add this to your config: c.InlineBackendConfig.figure_format = 'svg'" # Not currently checking path, because it's tricky to find a # cross-browser way to embed external SVG images (e.g., via