Open
Description
I have been using this code on my server to track long computations: https://gist.github.com/albop/8c94e8694369474f7c85 . It is used to track long computations and send an email when they are finished. It uses a context-manager in the following way:
with watcher('computation name', email='my@email.com'):
run_long_computation()
When the computation is finished it prints on screen the number of days or seconds elapsed and sends a notification by email.
A few easy improvements could be made to it:
- allow to use desktop notification instead of email
- add an IPython cell/line magic to do the same
What do you think ? If polished a little bit (no docstring), it could be a nice addition.