You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jupytext seems remove the indent space in empty lines when syncing the metadata from ipynb to python file. And empty line in YAML, while legal, prevent jupytext from working with error message:
Unreadable Notebook: c.py ScannerError('while scanning a quoted scalar', <yaml.error.Mark object at 0x7f9f90243190>, 'found unexpected end of stream', <yaml.error.Mark object at 0x7f9f90535be0>)
it configs the jupytext to use percent format and """\n \n""" as the markdown seperator.
note that there are indent space in the two empty lines
open the python file in jupyter notebook mode, it will open it successfully
press the save button to save the file, in order to trigger jupytext to save the metadata back to python file
you will notice that the indent space were removed in the two empty lines by jupytext
refresh the notebook, or reopen it again, there's an error
Unreadable Notebook: c.py ScannerError('while scanning a quoted scalar', <yaml.error.Mark object at 0x7f9f90243190>, 'found unexpected end of stream', <yaml.error.Mark object at 0x7f9f90535be0>)
The text was updated successfully, but these errors were encountered:
zhuoqiang
changed the title
notebook metadata saved in python does not preserve indent space for newline
empty line in notebook metadata section prevent it from openning
Dec 20, 2019
zhuoqiang
added a commit
to zhuoqiang/jupytext
that referenced
this issue
Dec 20, 2019
jupytext seems remove the indent space in empty lines when syncing the metadata from ipynb to python file. And empty line in YAML, while legal, prevent jupytext from working with error message:
reproduce step:
it configs the jupytext to use percent format and """\n \n""" as the markdown seperator.
note that there are indent space in the two empty lines
The text was updated successfully, but these errors were encountered: