mpastell / Pweave

Pweave is a scientific report generator and a literate programming tool for Python. It can capture the results and plots from data analysis and works well with numpy, scipy and matplotlib.
http://mpastell.com/pweave
Other
435 stars 64 forks source link

Automatically rerun changed cached chunks #86

Open konstunn opened 6 years ago

konstunn commented 6 years ago

Will pweave automatically rerun chunks which were changed since last time they were cached? Or one should handle this manually? And, however, as far as I can see there are only two options on what to run (not to run): rerun everything or nothing. Is it so?

fgregg commented 6 years ago

@mpastell would you be interested in a PR that added this functionality?

mpastell commented 6 years ago

Yes, a PR would be welcome. It’s actually easy to check if a chunk has changed, but it would probably be more useful to somehow handle depencies between chunks.

fgregg commented 6 years ago

I agree that checking dependencies would be great. This is not something that knitr or sweave does. Would you accept a PR that just reran changed chunks.