question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can I disable the 'update timestamp' step?

See original GitHub issue

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.

jupytext --to ipynb --execute notebook.py

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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mwoutscommented, May 20, 2021

FYI, we have a PR with a new --use-source-timestamp argument at #790.

1reaction
Midnightercommented, Apr 21, 2021

I was able to solve the problem with a pipe as described in the papermill demo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I stop windows 10 from not updating the timestamp on
Hi,. To come up with an accurate troubleshooting steps on how to stop Windows 10 from not updating the timestamp on updates, we...
Read more >
How to Disable Timestamping for Patch My PC Update ...
One reason why you may want to disable time stamping is to test if updates may be failing to publish due to timestamping...
Read more >
How to disable folder timestamp update in NTFS - Super User
This tweak eliminates the updating of the timestamps. Modify/Create the Value Data Type(s) and Value Name(s) as detailed below.
Read more >
How do I remove ON UPDATE CURRENT_TIMESTAMP from ...
I'm searching for an ALTER TABLE statement that will remove the ON UPDATE CURRENT_TIMESTAMP rule without making any other changes. In my ...
Read more >
Disable NTFS Last Access Update Timestamp In Windows ...
Limited Time Deal for Craig The Tech Teacher Fans. Get 1000+ Amazon Audible Audiobooks + 1 Title Free For 30-Days: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found