jupyter / nbviewer

nbconvert as a web service: Render Jupyter Notebooks as static web pages
https://nbviewer.jupyter.org
Other
2.21k stars 547 forks source link

Convert ipython notebook to pdf and/or print notebook #279

Open tmstout opened 10 years ago

tmstout commented 10 years ago

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

damianavila commented 10 years ago

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

koelah commented 6 years ago

Hello, someone to guide me on notebook conversion.

bollwyvl commented 6 years ago

@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.

SumanthLazarus commented 5 years ago

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.

kirank6 commented 4 years ago

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

goekce commented 4 years ago

Note that Jupyter Notebook is able to export a PDF.

File -> Download as -> PDF via LaTeX