mwouts / jupytext

Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
https://jupytext.readthedocs.io
MIT License
6.6k stars 386 forks source link

MyST version is a float instead of a string #1237

Open cpitclaudel opened 4 months ago

cpitclaudel commented 4 months ago

Trying to open a MySTNB file in Jupyter leads to the following error:

      File "…/jupytext/formats.py", line 445, in check_file_version
        if (fmt.min_readable_version_number or current) <= version <= current:

This seems to be due to missing quotes around the myST version here?

https://github.com/mwouts/jupytext/blob/fd07ae2f4aa4de9132b4835ce3fa082a5009cb1d/src/jupytext/myst.py#L40-L42