Skip to content

Commit

Permalink
Fixed ipython#735. More useful error message in html output
Browse files Browse the repository at this point in the history
  • Loading branch information
icmurray committed May 17, 2012
1 parent 62ea5e8 commit dd5e6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/frontend/qt/console/rich_ipython_widget.py
Expand Up @@ -231,7 +231,7 @@ def _get_image_tag(self, match, path = None, format = "png"):
try:
svg = str(self._name_to_svg_map[match.group("name")])
except KeyError:
return "<b>Couldn't find image %s</b>" % match.group("name")
return "<b>Cannot convert a PNG to SVG. </b>To fix this, add this to your config: <span>c.InlineBackendConfig.figure_format = 'svg'</span>"

# Not currently checking path, because it's tricky to find a
# cross-browser way to embed external SVG images (e.g., via
Expand Down

0 comments on commit dd5e6b7

Please sign in to comment.