nbviewer icon indicating copy to clipboard operation
nbviewer copied to clipboard

Convert ipython notebook to pdf and/or print notebook

Open tmstout opened this issue 10 years ago • 6 comments

Hi can someone please instruct me on how to convert my notebook.ipynb to notebook.pdf and/or print my notebook? Thank you.

tmstout avatar May 08 '14 00:05 tmstout

You can use IPython.nbconvert to do that... check this section: http://ipython.org/ipython-doc/stable/notebook/nbconvert.html

damianavila avatar May 09 '14 11:05 damianavila

Hello, someone to guide me on notebook conversion.

koelah avatar Feb 07 '18 13:02 koelah

@koelah the nbconvert link is out of date, here's the updated one:

https://nbconvert.readthedocs.io/en/latest/

If you can run jupyter notebook command locally, you've already got the jupyter nbconvert command. Installing a working LaTeX environment is a bit more involved!

For reference: at present, there are no plans to do latex-based PDF rendering of notebooks on nbviewer at this time.

bollwyvl avatar Feb 07 '18 14:02 bollwyvl

I think I've found a decent solution as I was stuck with the same problem. For an aesthetically pleasing print-out of the Jupyter notebook w. embedded pictures and codes (.pdf format) for the usage of study and learning (as lecture slides), I recommend take a print-out using your web-browser (Chrome: Print=Ctrl+P).

Outcome: an aestheically pleasing document, containing all codes, pictures as embedded within a Jupyter notebook.

tl:dr Avoid any conversion within the Jupyter notebook option; print straight out of web-browser.

SumanthLazarus avatar Apr 22 '19 12:04 SumanthLazarus

I was able to convert from Jupyter notebook to Latex, and then to pdf. It preserves all the contents as they are. Here are the steps: https://github.com/kirankhanal2007/Python-Examples/blob/master/Convert%20Jupyter%20Notebook%20to%20PDF.pdf

kirank6 avatar May 29 '20 23:05 kirank6

Note that Jupyter Notebook is able to export a PDF.

File -> Download as -> PDF via LaTeX

goekce avatar Jul 06 '20 11:07 goekce