sphinxcontrib-jupyter
sphinxcontrib-jupyter copied to clipboard
PDF: Embed Images in PDF pipeline that support SVG
We received the following suggestion via: [email protected].
I think you're absolutely right that SVG cannot be embedded in PDF, directly. But apparently when "exporting" to PDF the Jupyter notebook environment (at least on my Windows setup) uses the open-source Inkscape graphics app (https://inkscape.org/) to convert any SVG-based graphs present in the notebook into a PDF-compatible format. So if you install Inkscape on your system and make the inkscape executable available on PATH, then nbconvert / pandoc should do the rest.
- [ ] investigate if we can support SVG type graphics in PDF files.
- [ ] alternatively does export from matplotlib to
pdfwrite arastertype image? Should we just swap fromsvgtopdf? But I guess that doesn't work as well for website. We might be able to swap thematplotliboutput setting for thepdfpipeline
http://blog.rtwilson.com/how-to-get-nice-vector-graphics-in-your-exported-pdf-ipython-notebooks/