

There are several ways to convert Jupyter Notebook as PDF. PDFs can be easily published online or send in the email. Saving notebooks to PDF is a great way to persist results in a shareble format. The end-user just need to clik the Download button. The Mercury allows to export the executed notebook into standalone HTML or PDF file.

Your end-users can tweak widgets values and execute the notebook with new values (without changing the code). You can share a notebook with interactive widgets. It converts notebooks to interactive documents (web apps, reports, slides, dashboards). There is an open-source framework Mercury that makes Python notebooks sharing painless. Jupyter nbconvert -to webpdf -no-input your-notebook-file.ipynbĪdditionally, you can apply more options to the export like removing selected cells or change the templates. If you don’t have required packages you will get the error message: It requires you to install much more packages than option of export via HTML. For me, the option that exports with LaTeX is difficult. This approach requires you to install some additional packages. It can be accessed by clicking File -> Download as -> PDF via LaTeX (or PDF via HTML - not visible in the screenshot). The Jupyter Notebook has an option to export the notebook to many formats. What is more, we can’t control the process of export (for example, we can’t hide code in the exported file). The big advantage of this approach is that we don’t need to install additional libraries to make it works! However, it is manual approach - hard to automate. There is no need to install any additional packages. The most straightforward way is just to use web browser feature of print to PDF. In this post I will show you 4 different ways how to export Jupyter Notebook as PDF file. That makes it format of choice for many who wants to share their results. It can be displayed on any operating system. Have you ever wanted to export your Jupyter Notebook to PDF file? The PDF is an abbreviation for Portable Document Format.
