jupytext
converts Jupyter notebooks to text formats
TLDR
Convert notebook to Python
$ jupytext --to py [notebook.ipynb]
Convert Python to notebook$ jupytext --to ipynb [script.py]
Sync paired files$ jupytext --sync [notebook.ipynb]
Set pairing$ jupytext --set-formats [ipynb,py:percent] [notebook.ipynb]
Update notebook metadata$ jupytext --update-metadata '{"key":"value"}' [notebook.ipynb]
SYNOPSIS
jupytext [options] notebook
DESCRIPTION
Jupytext converts Jupyter notebooks to text formats. It enables version control of notebooks as scripts or markdown.
The tool maintains synchronization between formats. Paired notebooks auto-update when either file changes.
PARAMETERS
--to FORMAT
Target format (py, ipynb, md, Rmd).--sync
Sync paired representations.--set-formats FORMATS
Set pairing formats.--from FORMAT
Source format.--update-metadata JSON
Update notebook metadata.--help
Display help information.
CAVEATS
Python tool. Some cell outputs lost in text. Pairing setup recommended.
HISTORY
Jupytext was created by Marc Wouts to solve version control challenges with Jupyter notebooks.
SEE ALSO
jupyter(1), nbconvert(1), nbstripout(1)
