Open
Description
openedon Sep 9, 2022
Description
If you use something like matplotlib_inline.backend_inline.set_matplotlib_formats('svg')
then matplotlib produces images in the svg format. In many situations this is a good thing with respect to the image quality.
However, if you have this kind of images in the notebook, then nbconvert
cannot deal with them.
Reproduce
-
Create a cell with
from matplotlib import pyplot as plt import matplotlib_inline matplotlib_inline.backend_inline.set_matplotlib_formats('svg')
and evaluate it
-
Create a cell with
plt.plot([0,0],[1,1])
and evaluate it
-
Use
jupyter nbconvert
to convert the notebook to html. -
Open the html with a browser
Expected behavior
You should see a plot after point 2. above and then that should be also in the webpage seen at point 4. However at 4. you get a web page with no plot.
Metadata
Assignees
Labels
No labels
Activity