Jupytext with Jupyter Book

    It's also possible to build Jupyter Books using Jupytext, a tool fortwo-way conversion between Jupyter Notebooks an text-based versions of a Jupyter Notebook (e.g., or .py).

    Using Jupytext allows you to store your Jupyter Notebooks as text files, which makes them much better forcollaboration and "diffing" using a tool like Git. The drawbacks are that you no longer keep the outputs withyour files, which means building your book with outputs requires running each file at build-time.

    Below we'll show some Python code, which Jupyter Book can execute at build time.

    Using Jupytext for text-based Notebook content - 图2

    There are . JupyterBook works with a subset of common ones:

    • Markdown files ( or .markdown)
    • RMarkdown files ()

    This page was created by The Jupyter Book Community