

Ipython nbconvert -to html notebook.ipynb

Original (now almost obsolete) revision: Convert the IPython notebook file to html. You can download wkhtmltopdf from the linked webpage, or in many Linux distros it can be found in their repositories. wkhtmltopdf is a command line utility to convert html to pdf using WebKit. In Windows, macOS ( brew install wkhtmltodf) or Linux, install wkhtmltopdf. py formats.Ĭonvert the html file notebook.html into a pdf file called notebook.pdf. If you are using Google Colab the commands are the same, but Google Colab only lets you download. Google Colaboratory is Google's free Jupyter notebook environment that requires no setup and runs entirely in the cloud. This will convert the Jupyter document file notebook.ipynb into the html output format. Otherwise follow these two steps.įor HTML output, you should now use Jupyter in place of IPython and select File -> Download as -> HTML (.html) or run the following command: jupyter nbconvert -to html notebook.ipynb If you have LaTeX installed you can download as PDF directly from Jupyter notebook with File -> Download as -> PDF via LaTeX (.pdf).
