Skip to content

Releases: mwouts/jupytext

Version 1.13.1

07 Oct 17:22
186d822
Compare
Choose a tag to compare
  • The magic commands in py:percent scripts with no explicit format information remain commented over a round trip (#848)

Version 1.13.0

25 Sep 14:16
f369062
Compare
Choose a tag to compare

Added

  • The Jupytext CLI has a new --diff command to show the differences between two notebooks (and if you want to see the changes in a file being updated by Jupytext, use --show-changes) (#799)
  • Jupyter will show the diff between text and ipynb paired notebooks when it cannot open a paired notebook because the ipynb version is more recent. Also, if the inputs in the two files are identical then the notebook will open with no error (#799)
  • The py:percent format will use raw strings when encoding Markdown cells as string, if they contain backslash characters (#836)

Fixed

  • We have upgraded the jupyterlab extension dependencies and especially ansi-regex to fix a security vulnerability (#857)

Changed

  • The Jupytext configuration file is reloaded only when a notebook is opened, saved, or when a different folder is explored (#797)

Version 1.12.0

08 Sep 21:45
5e96f4d
Compare
Choose a tag to compare

Added

  • Jupytext supports Quarto notebooks (with .qmd extension) (#837)
  • Jupytext can be configured through the pyproject.toml file. Thanks to Robin Brown for this contribution! (#828)
  • Jupytext now supports OCaml files with .ml extension. Thanks to Quentin Fortier for getting this started (#832)

Fixed

  • Added more test to make sure that notebooks can be trusted. In practice, notebooks could not be trusted in JupyterLab<3.0.13 because of the absence of cell ids (#826)

Version 1.11.5

31 Aug 20:31
ae8dcaa
Compare
Choose a tag to compare

Fixed

  • Fixed typos revealed by codespell - thanks to @hectormz for this contribution (#829)
  • We updated the dependencies of the jupyterlab-jupytext extension to address several security issues (#842) (#843)
  • The Jupytext dev environment (requirements-dev.txt) now uses jupyterlab==3.0.17 rather than 3.0.0 because of another security issue (#839)

Version 1.11.4

14 Jul 22:58
94ac59d
Compare
Choose a tag to compare

Changed

  • The documentation illustrates how the cell_markers option (and the other ones) can be set directly in the jupytext.toml config file (#809).
  • The dependency on mdit-py-plugins through markdown-it-py[plugins] was made explicit (#814)

Fixed

  • System assigns of the form var = !cmd are commented out (#816)
  • Fixed an InconsistentPath issue with notebooks paired with scripts in a folder. The prefix in the Jupytext formats always use /, while paths might use either / or \ (#806)
  • Tests that cannot succeed are skipped when either the Jupytext folder is not a git repository, when sphinx-gallery is too recent, or when pandoc is not up-to-date (#814)
  • Removed the mention of '--update' in 'jupytext --pipe' since outputs are preserved already

Version 1.11.3

10 Jun 05:10
Compare
Choose a tag to compare

Changed

  • Jupytext CLI has a new option --use-source-timestamp that sets the last modification time of the output file equal to that of the source file (this avoids having to change the timestamp of the source file) (#784)
  • In the pre-commit mode, Jupytext now uses the commit timestamp to determine which file in the pair is the most recent (#780)

Fixed

  • Dependencies of the JupyterLab extension have been upgraded to fix a security vulnerability (#798)
  • The --warn-only option also applies to pipes. Use this if the pipe may fail, e.g. if you apply black on a possibly invalid script (#781)
  • Variables assigned from a magic command are commented out in py scripts (#781)
  • Fixed a round-trip issue on notebooks that have None/null in their metadata (#792)

Version 1.11.2

02 May 18:07
ee468c8
Compare
Choose a tag to compare

Changed

  • Jupytext's dependency markdown-it-py is now in v1 (#769)
  • The optional argument fmt in jupytext.reads now has the default value None - thanks to Yuvi Panda (#763)

Fixed

  • All text files are opened with an explicit utf-8 encoding (#770)
  • Previously --pipe black was not always putting two blank lines between functions. To fix that we load the internal Jupytext
    cell metadata like lines_to_next_cell from the text file rather than ipynb (#761)
  • The timestamp of the source file is not updated any more when the destination file is not in the pair (#765, #767)

Added

  • A new test documents when the ipython3 pygment lexer appears in MyST Markdown files (#759)

Version 1.11.1

25 Mar 23:07
4ae9263
Compare
Choose a tag to compare

Fixed

  • Format options stored in the notebook itself are now taken into account (Fixes #757)

Version 1.11.0

18 Mar 05:47
0a8b180
Compare
Choose a tag to compare

Fixed

  • The jupytext.toml config file can now be used together with the jupytext pre-commit hook (#752)
  • The notebook_extensions option of the jupytext.toml file now works (#746)

Changed

  • The options in jupytext.toml where renamed to match the jupytext metadata in the text notebooks. One should now use formats rather than default_jupytext_formats and notebook_metadata_filter rather than default_notebook_metadata_filter (#753)

Version 1.10.3

07 Mar 19:28
593bcef
Compare
Choose a tag to compare

Fixed

  • We have updated marked, an indirect dependency of the jupyterlab-jupytext extension, to fix a moderate vulnerability (#750).
  • We use non-random cell ids in the tests to avoid test failures due to duplicate cell ids (#747)