Jupyter Notebooks are a versatile and popular instance of the literate programming paradigm. Jupyter allows authors to intersperse code chunks with explanation and annotation, providing readers with more information about the intent and function of programming choices.
You can run Jupyter notebooks in two ways on Code Ocean:
- From the top all the way to the bottom via a master script. This is what happens when you click 'Reproducible Run' in your capsule.
- Interactively via a Cloud Workstation. This is akin to a more typical Jupyter notebook experience.
Reproducibly Running a Notebook via a Master Script
To publish on Code Ocean, we require that notebooks be executed as a whole, serving as a reproducible record of the analysis from start to finish. This article shows you how.
Running Notebooks Interactively
To work in a Jupyter notebook interactively, see Cloud Workstations.
Example Capsules Using Jupyter Notebooks
- Fractal Generation with L-Systems: Jupyter and JupyterLab
- A Modularized Efficient Framework for Non-Markov Time Series Estimation (this capsule uses a bash script to execute many notebooks in parallel)
On Writing Reproducible and Interactive Papers (this capsule demonstrates how to render a Jupyter notebook to
.texand subsequently to PDF, which requires LaTeX to be installed
- Identifying Gene Expression Programs of Cell-type Identity and Cellular Activity with Single-Cell RNA-Seq
- Rendering Jupyter notebooks to HTML (with more specific notes on the nbconvert command and its flags)
- Interactive Jupyter Sessions
- Installing additional Jupyter kernels
- Converting a Jupyter notebook to the latest version
- nbconvert GitHub repo (external resource)