LinuxCommandLibrary

jupytext

converts Jupyter notebooks to text formats

TLDR

Convert notebook to Python

$ jupytext --to py [notebook.ipynb]
copy
Convert Python to notebook
$ jupytext --to ipynb [script.py]
copy
Sync paired files
$ jupytext --sync [notebook.ipynb]
copy
Set pairing
$ jupytext --set-formats [ipynb,py:percent] [notebook.ipynb]
copy
Update notebook metadata
$ jupytext --update-metadata '{"key":"value"}' [notebook.ipynb]
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community