Jupyter notebooks (.ipynb)
Publish .ipynb notebooks as pages, with their outputs, figures and code
Built by
Availability
Works with
- Curvenote CLI
- Curvenote Reader
- Curvenote Sites
- Curvenote SCMS
- Curvenote Studio
Categories
Resources
What Curvenote can do with a Jupyter notebooks (.ipynb) integration
Notebooks as pages
Each .ipynb is a page, with its text, code and outputs.
Embed outputs
Label a cell and show its output as a figure anywhere.
Run on build
Execute notebooks as the site builds, so outputs are current.
Interactive outputs
Plotly, Bokeh and Altair charts keep their interactivity.
How it works with Curvenote
Add .ipynb files to a Curvenote project and each becomes a page: Markdown cells as text, code cells with their outputs, and figures as figures. Label a cell and embed its output anywhere in an article, so a figure always comes from the code that made it.
The CLI can run notebooks as it builds, so outputs are current, and readers can run the cells again from the page when the site has compute. Interactive outputs, such as Plotly, Bokeh and Altair charts, stay interactive.
Setting it up
Put your .ipynb files in the project and list them in its table of contents.
Label a cell (#| label: fig-results) to embed its output in an article.
Run curvenote start to preview, or build with execution on.
About Jupyter notebooks (.ipynb)
The .ipynb file is Jupyter’s notebook format: code, its outputs and narrative in one document.
More integrations
BinderHubRun an article’s code in a reproducible environment, from the pageNotebooksComputational Tools
BokehInteractive Bokeh plots from notebooks, live on the pageVisualizationComputational Tools
AltairInteractive Altair and Vega-Lite charts from notebooksVisualizationComputational Tools