-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I disable the 'update timestamp' step? #767
Comments
I was able to solve the problem with a pipe as described in the papermill demo. |
Hi @Midnighter , thank you for sharing your use case. It's a great thing that you've been able to solve the issue. I think that your original question is nevertheless very interesting. My expectation is that Jupytext should update the timestamp of the If you find out that unpairing is not enough, or if you think it would be legitimate to implement a |
Ah, you are correct that removing the I had set the following:
and expected that to unpair the two as well.
Now that I know how to properly unpair the files, I don't think such an option is a good idea since it may lead to a broken pair. |
Ok thanks for the update! So if I follow well, a notebook paired with just itself is considered as a paired notebook, and its timestamp gets updated when we do a Maybe it would make sense to consider that when the destination is not part of the pair, the source notebook does not need to be updated. What do you think? |
That'd make sense to me 👍🏼 However, I'm sure there are many other things that you could work on that are more important than this. |
Well precisely there is another question about timestamp updates at #765. I'll try to answer both in the next version. |
FYI, we have a PR with a new |
I am trying to create a small workflow using
make
. The basic idea being that I want to generate data from a notebook (py:percent
). Defining the notebook as a prerequisite for the data files in the Makefile, I would like to be able to re-generate those data files where the notebook has been updated (later timestamp than the data file).So ideally I would like to execute the notebook to generate the data and an
.ipynb
file as a report containing outputs.However, since the data is generated during the execution and jupytext updates the timestamp at the end,
make
will always consider the generated files outdated. I tried to play with the--pre-commit-mode
but couldn't get it to work. Is there another way to prevent jupytext from updating the timestamp?The text was updated successfully, but these errors were encountered: