Can I disable the 'update timestamp' step?
See original GitHub issueI 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:
- Created 2 years ago
- Comments:7 (4 by maintainers)
FYI, we have a PR with a new
--use-source-timestamp
argument at #790.I was able to solve the problem with a pipe as described in the papermill demo.