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
I want to configure jupytext to save companion .py files for all .ipynb notebooks. I want the .py files to have a specific suffix, so that it's easy to identify those files.
This command works: jupytext --from ipynb --to __sidecar.py:percent <notebook file>
However, I get the following warning from jupytext:
[warning] You have passed a file name to the '--to' option, when a format description was expected. Maybe you want to use the '-o' option instead?
Is there a workaround I can use in the meantime? It seems that adding // could fix this, though I don't quite understand how to use it, or if that will cause side-effects?
The text was updated successfully, but these errors were encountered:
I believe I have not seen this in the Jupytext examples because in my examples the suffix start with a dot. I will see how to improve this, meanwhile you can either ignore the warning, or use a suffix that starts with ..
I want to configure jupytext to save companion
.py
files for all.ipynb
notebooks. I want the.py
files to have a specific suffix, so that it's easy to identify those files.This command works:
jupytext --from ipynb --to __sidecar.py:percent <notebook file>
However, I get the following warning from jupytext:
I'm guessing it's this code:
jupytext/jupytext/cli.py
Lines 463 to 466 in 57d83aa
And I'm guessing the issue is that the check
"." in args.output_format
is being triggered?Is something wrong with my --to option? Based on the docs (https://jupytext.readthedocs.io/en/latest/config.html), I believe the format above (
__sidecar.py:percent
) is valid.Is there a workaround I can use in the meantime? It seems that adding
//
could fix this, though I don't quite understand how to use it, or if that will cause side-effects?The text was updated successfully, but these errors were encountered: