Jupyter: trick to run next cell even if previous cell fails
问题 I want to send alerts if a long running cell fails, but I don't want to try/except because then I will send needless messages when I am looking at the error. Is there a way to do this? Desired workflow: 1) run status=train() cell 2) see no error in first 15 seconds 3) execute next cell send_alert('done or error') that will execute regardless of the outcome of cell 1. 4) Go do something else Here is a one cell solution that is annoying to code every time: try: start = time.time() train(...)