back

by apwheele·4y ago·view on hn ↗
FYI for folks if you want to convert jupyter notebooks to html you can use nbconvert:

    jupyter nbconvert --execute example_report.ipynb --no-input --to html
I have never been able to get a nice looking report in both html/PDF though via the tools to print html to PDF (as opposed to building a nice looking PDF doc using LaTeX directly). So default just worry about making the html look nice.
1 comments
The Mercury uses `nbconvert` internally to convert notebooks, so you don't need to execute them manually. It also adds additional features to make it more user-friendly:

- you can add widgets (parameters) to the notebook, without rewriting the notebook,

- you can easily schedule the notebook,

- you can convert notebook to PDF with mouse click,

- you can serve interactive HTML notebooks with a Django-based server.