r/IPython • u/kiwiheretic • Jul 05 '17
Has anyone successfully managed to get "Download as PDF" working on Jupyter Notebook?
I've installed pandoc and texlive-xetex on my vps but still it comes up with 500 server errors when I try to download an ipython notebook as PDF
8
Upvotes
3
u/valianto1e Jul 05 '17
funny you should ask, I've been in the process of documenting a post about the right setup to ensure LaTex commands work as expected. May seem tangential but it lists all the right steps to ensure Save as PDF works!
1
u/kiwiheretic Jul 06 '17
Ok, it looks like it (latex) was choking on the embedded image in the notebook complaining about not being able to load the image. I notice the gist also failed to display the image charge-in-sphere.png.
1
u/bluesufi Jul 05 '17
Every new install I have some issues, but eventually I get it working. Have you tried using nbconvert directly? ie. on the command line:
jupyter nbconvert notebook.ipynb --to pdfMaybe the error code there would be more useful.
1
u/NomadNella Jul 05 '17
I had problems for a long time but this latest version is not giving me any issues. Additionally, you could "Download as LaTeX" and edit the lines that are causing problems and convert to a pdf when your done.
1
u/[deleted] Sep 06 '24
https://www.convert.ploomber.io/
1
u/Intelisoft2022 Nov 09 '24
just use https://rare2pdf.com/ipynb-to-pdf/
1
u/rrggrr Jul 05 '17
Have a look at Weasyprint with Guttenberg.css for style sheet, and saving the notebook as HTML.