
Jupytext
Notebooks as plain-text Markdown: easy to diff, review and version
Built by
Availability
Works with
- Curvenote CLI
- Curvenote Sites
- Curvenote Reader
- Curvenote SCMS
Resources
What Curvenote can do with a Jupytext integration
Notebooks as text
Markdown files that diff, merge and review like any source.
Cells that run
code-cell blocks execute, with outputs like any notebook.
Embed outputs
Label a cell and show its output as a figure anywhere.
Pair with .ipynb
Keep a paired .ipynb for Jupyter, and publish the text file.
How it works with Curvenote
Curvenote reads Jupytext’s Markdown notebooks as notebooks: a Markdown file with Jupytext or kernelspec frontmatter becomes a notebook page, and its code-cell blocks are cells that run, with outputs you can embed anywhere in an article.
Write and review notebooks as text, pair them with .ipynb files in Jupyter when you want to, and publish the same file to your Curvenote site.
Setting it up
Give the Markdown file Jupytext (or kernelspec) frontmatter.
Write code in {code-cell} blocks.
Preview with curvenote start; build with execution on to refresh outputs.
Questions
Which Jupytext formats work?
Its Markdown notebooks (MyST Markdown, with code-cell blocks). Python scripts in the percent format aren’t read as notebooks.
About Jupytext
Jupytext keeps Jupyter notebooks as plain-text files, so they diff and merge like any other source and live happily in Git.
More integrations
marimoInteractive marimo notebooks in your pages, through the marimo plugin or islandsNotebooksComputational Tools
AltairInteractive Altair and Vega-Lite charts from notebooksVisualizationComputational Tools