mwouts / jupytext

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

Jupytext corrupts original notebook with base64 of pair #1221

Closed EduardDurech closed 7 months ago

EduardDurech commented 7 months ago

I saw this issue may be related to jupyter-collaboration interacting with jupytext https://github.com/jupyterlab/jupyter-collaboration/issues/214, but for some reason it will overwrite the original file with a base64 encoded version of the paired file. This is really bad as while code is recoverable, none of the visuals are

image

It also gives this error even though there are no other instances open, even duplicating the file and opening it for the first time will give the error image

mwouts commented 7 months ago

Thanks @EduardDurech for following up on this.

I have added a comment on the Jupyter-collaboration issue: https://github.com/jupyterlab/jupyter-collaboration/issues/214#issuecomment-2016911278.

If you don't mind, we can continue the conversation there, or on the other issue #1124.

Kind regards