From the course: Introducing Jupyter

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Exporting to HTML and PDF

Exporting to HTML and PDF - Python Tutorial

From the course: Introducing Jupyter

Exporting to HTML and PDF

- [Instructor] Jupyter has ways to export your notebook into various formats. HTML can be a useful format to convert to if you want to display your Notebook on a web page. This can be done in two ways. The first way is to use the Download As option in the File menu. Download As and select HTML. This will save the HTML file to your Downloads folder. I'll look at the result and it's an HTML page that looks just like the Notebook but it is a static HTML page and I cannot interact with that. The second way to convert to HTML is to use the command line tool nbconvert. Nbconvert comes with the Anaconda package that you installed and is available just by using jupyter nbconvert with a file name as a parameter. It accepts a to flag to specify a format and it can convert to a few different formats. If none is given, it will default to HTML. And with HTML format, there's a second argument called template which can be basic or full and again, if nothing is specified, it will default to full. So,…

Contents