-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nbconvert cannot deal with notebooks containing svg images #1863
Comments
Duplicate of #1849. |
I'm also seeing this problem where SVG images are displayed as code instead of an image. The most recent version that works for me is nbconvert 6.5.2. Later 6.5.x versions just display a blank area where the SVG should be, and 7.x versions up to 7.2.2 display the SVG as code. nbconvert 7.2.3 (the latest version as I write this) works. |
I've done more tests and I now see that nbconvert 7.2.3 is still broken (e.g. SVG output from Plotly is rendered as a black rectangle) and the version that seems to work reliably is actuall nbconvert 6.5.0 (version 6.5.1 shows blank SVGs). I'm testing with Jupyter Lab 3.4.8. |
The commit that introduces the SVG issues is: 4b9c5e7 |
This is still an issue with |
Is there a plan to fix this? I just tested |
@carlosefr can you check if this is still an issue in nbconvert 7.7.x? |
With |
See also a PR by me for explicitly included SVG images and However, |
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
and evaluate it
Create a cell with
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.
The text was updated successfully, but these errors were encountered: