jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

[Bug]: Svg outputs from jupyter not working

Open TheLittleRock opened this issue 6 months ago • 2 comments

What happened, and what did you expect to happen?

When jupyter notebook is outputing svg (eg with %config InlineBackend.figure_format='svg' setting and plotting with matplotlib) jupyterbook does not display this image. However in webpage source json the svg image is still referenced: { "type": "output", "id": "VbTOGGgeJYfAfG87VEtTT", "data": [ { "output_type": "display_data", "metadata": {}, "data": { "image/svg+xml": { "content_type": "image/svg+xml", "hash": "8f28914d53313bd57630300d14003503", "path": "/8f28914d53313bd57630300d14003503.svg" }, "text/plain": { "content": "<Figure size 600x400 with 1 Axes>", "content_type": "text/plain" } } } ], "key": "zBV9V1dEB7" }

On the webpage only the text output (<Figure size 600x400 with 1 Axes>) is being displayed.

What version of Jupyter Book are you running?

v.2.0.0a3

What Operating System are you using?

Linux

Relevant log output


TheLittleRock avatar May 15 '25 15:05 TheLittleRock