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
Trying to update a notebook with data coming from stdin fails. Steps to reproduce:
Start with a notebook file notebook.ipynb (does not need to be paired)
Create a notebook.md file by running jupytext --to=markdown notebook.ipynb
Verify that jupytext --to=ipynb --output notebook.ipynb --update notebook.md works
Run cat notebook.md | jupytext --to=ipynb --output notebook.ipynb --update, which should be equivalent.
This errors with jupytext.formats.JupytextFormatError: No format associated to extension '.'. The reason is that jupytext tries to get a file extension from the input file (stdin in this case) in check_file_version.
However, this is unnecessary, as the input data contains the following in the YAML header:
Trying to update a notebook with data coming from
stdin
fails. Steps to reproduce:notebook.ipynb
(does not need to be paired)notebook.md
file by runningjupytext --to=markdown notebook.ipynb
jupytext --to=ipynb --output notebook.ipynb --update notebook.md
workscat notebook.md | jupytext --to=ipynb --output notebook.ipynb --update
, which should be equivalent.This errors with
jupytext.formats.JupytextFormatError: No format associated to extension '.'
. The reason is that jupytext tries to get a file extension from the input file (stdin
in this case) incheck_file_version
.However, this is unnecessary, as the input data contains the following in the YAML header:
Jupytext could get all the required information from this metadata (the
jupytext.text_representation.extension
, in particular).Being able to update from stdin would be extremely helpful in a rewrite of
jupytext.nvim
that avoids the use of temporary files.The text was updated successfully, but these errors were encountered: