Skip to content

Jupytext

Notebooks as plain-text Markdown: easy to diff, review and version

NotebooksAuthoring & formats
Read the docs

Built by

Curvenote

Availability

Built in

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

  1. Give the Markdown file Jupytext (or kernelspec) frontmatter.

  2. Write code in {code-cell} blocks.

  3. 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.

Talk to us about your stack

More integrations

We use cookies to enhance your experience and analyze site usage.

Learn more in our Privacy Policy.