Rendering Jupyter notebooks to HTML

How to execute notebooks reproducibly and save the output to the results folder

Written by Shahar Zaks Updated over a week ago

While Jupyter notebooks are commonly used interactively, with cells executed individually, to publish on Code Ocean, we ask that notebooks be executed as a whole. This allows notebooks to serve as a reproducible record of the analysis from start to finish.

To do so, add commands* to your master script to execute jupyter nbconvert with the --execute flag listed. This renders the final results into /results as an HTML file.