jupyter nbconvert --to html notebook.ipynb

Category: Data Science & Analysis

jupyter nbconvert --to html notebook.ipynb

Export a notebook to a standalone HTML page

nbconvert converts notebooks between formats. The --to html flag produces a self-contained HTML page with code, output, and markdown rendered, ready to share with anyone. Styling is embedded, so the file works offline. This is the standard way to publish an analysis without installing notebook software on the reader's machine.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.