Pair Jupyter notebooks with plain-text files so review and agent edits stay readable with Jupytext
Keep notebooks synchronized with .py or .md representations so version control, review, and refactoring can happen outside bulky notebook JSON.
Prerequisites
Python, JupyterLab or Jupyter Notebook
Installation
Use the upstream install or setup path that matches your environment:
- pip install jupytext
- conda install jupytext -c conda-forge
Requirements and caveats from upstream:
Basic usage or getting-started notes:
or
Then, restart your JupyterLab server, and make sure Jupytext is activated in Jupyter: .py and .md files have a Notebook icon, and you can open them as Notebooks with a right click in JupyterLab.
Extracted from upstream docs: https://raw.githubusercontent.com/mwouts/jupytext/HEAD/README.md