machbio / til
← All notes

Exporting a Jupyter notebook to HTML

This is a starter example note. Replace it with a discovery of your own, or keep it as a useful reference.

A Jupyter notebook can be exported to a static HTML page using nbconvert:

jupyter nbconvert --to html --embed-images experiment.ipynb

This writes experiment.html, including saved cell outputs. Conversion does not execute the notebook; run and save your cells first if you want their results included.

The exported page can be placed under public/notebooks/ and linked from a note. It displays code and results without providing an editable notebook or live Python kernel.

See nbconvert’s HTML export documentation for details.

By machbio · Follow new notes via RSS