Open mmcky opened 5 years ago
pdf
write a raster
type image? Should we just swap from svg
to pdf
? But I guess that doesn't work as well for website. We might be able to swap the matplotlib
output setting for the pdf
pipelinehttp://blog.rtwilson.com/how-to-get-nice-vector-graphics-in-your-exported-pdf-ipython-notebooks/
We received the following suggestion via: contact@quantecon.org.
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.