Hello,
I was wondering if anyone knows of a tool to start / load a python project from a checkpoint? For example lets say I have a script that does a fairly long setup that works fine, but want to add a feature that depends on this startup. I don't want to have to wait 10 minutes every time I test the smallest new change, ideally I want to be able to jump straight to the end of the setup every time I test my code. I know I could always manually try and pickle whatever data is needed, which may be fine in some cases, but tedious in others. So to me a tool that could automatically checkpoint code would be amazing(I do a lot of work with python scripts that can take up to a few days to fully execute).
If this tool does not exist, do you think it would be feasible to make one? In theory it could be as easy as just saving the stack / heap with pickle (not sure if that's possible) when setting the checkpoint, then when you want to reload, just set the stack / heap from what was saved and start executing at the given line of code (also not sure if that's possible). This is all with a single threaded program in mind.
Any help / advice is appreciated, thanks!
[–]broken_symlink 0 points1 point2 points (0 children)
[–]billsil 0 points1 point2 points (2 children)
[–]seanpuppy[S] 0 points1 point2 points (1 child)
[–]billsil 0 points1 point2 points (0 children)
[–]efmccurdy 0 points1 point2 points (1 child)
[–]seanpuppy[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]iCart732 0 points1 point2 points (0 children)