ipycache icon indicating copy to clipboard operation
ipycache copied to clipboard

automatically re-run cell if content changed

Open ihrke opened this issue 10 years ago • 1 comments

I think it would be convenient to re-run cells whose content has changed. One way is to hash the cells' code and put it into the pickle file and compare it when re-running. We could enable/disable this behavior with some configuration flag, e.g., --enable-auto-rerun.

ihrke avatar Feb 10 '15 09:02 ihrke

At this moment cache function does not store the code yet. In the function definition are some traces that this is very easy, including the line:

code = cell if cell.endswith('\n') else cell+'\n'

vascotenner avatar Feb 19 '16 12:02 vascotenner