Closed mwouts closed 6 months ago
Thank you for making this pull request.
Did you know? You can try it on Binder: or .
Also, the version of Jupytext developed in this PR can be installed with pip
:
HATCH_BUILD_HOOKS_ENABLE=true pip install git+https://github.com/mwouts/jupytext.git@skip_update_timestamp
(this requires nodejs
, see more at Developing Jupytext)
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.76%. Comparing base (
7963f5f
) to head (bd50cbe
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @mwouts, sorry to bother you but after the recent change, this feature only works with the --sync
command.
If I run jupytext --sync notebook.py
I get:
[jupytext] Reading notebook.py in format py
[jupytext] Loading notebook.ipynb
[jupytext] Updating notebook.ipynb
[jupytext] Unchanged notebook.py
however with jupytext --to ipynb notebook.py --output notebook.ipynb
I get:
[jupytext] Reading notebook.py in format py
[jupytext] Writing notebook.ipynb (destination file replaced [use --update to preserve cell outputs and ids])
[jupytext] Updating the timestamp of notebook.py
and the python file's timestamp is updated.
Is there a reason we can't get the same behavior for --to
as for --sync
? Thanks
Closes #1215