Added
- The documentation has a chapter on the Jupytext Sync extension for VS Code (#1395)
- We have added a new option
--check-source-is-newer
to the Jupytext CLI. Use this option if you want to make sure that the file passed as argument to Jupytext is the newest of all paired files, and/or newer than the destination file. - We have added a section on Jupyter Collaboration which also provides a very useful autoreload functionality (#406, #1401)
- Pairing groups allow you to define different pairing configurations for specific subsets of notebooks. The
formats
configuration option now supports a list of format dictionaries for first-match pairing. Use[[formats]]
sections in your TOML configuration to define multiple format specifications, where the first matching format is used. This allows applying different pairing rules to notebooks in different locations, such as generating documentation markdown files only for tutorial notebooks (#1383) - We have added more tests do document the complex pairing formats, which also work on Windows (#1028)
- Pairing into nested folders was fixed on Windows (#1028)
- Jupytext is now tested with Python 3.14 (#1456)
Fixed
- The Jupytext CLI now detects if a file it has read or consulted has been modified while it was processing it. That can happen in the context of the Jupytext Sync extension for VS Code (#1411, vscode-jupytext-sync-#12). When such a synchronous modification is detected, Jupytext now raises an error. Many thanks to Anne Archibald for reporting the issue and preparing an inspiring PR (#1417).
- We don't import
notebook
whenjupyter_server
is available (#1436) - Jupytext now support more characters in the cell metadata keys, to improve compatibility with
jupyterlab-slideshow
(#1441). Thanks to Nicolas Thierry for this fix. - The function
find_jupytext_configuration_file
now works with relative directories (#1440). This fix was contributed by Thierry Parmentelat. - We have fixed a parsing error for R Markdown files (#1429)
Changed
- We have updated the pre-commit hooks. The code is now formatted using
ruff format
, and updated for Python 3.9+ using https://github.com/asottile/pyupgrade (#1423)