0

I want to add custom code that will be executed on every cell run on my jupyter notebook on my vscode editor

my main goal is that in case the cell run was more than 1 min say Done

something like:

if cell_run > 60:
    os.system("say Done")

when I run cell it prints automatically the time it takes to run it so I guess I can use something like that any idea how to do that?

Michael
  • 149
  • 2
  • 11
  • Might have to edit this to check after a certain time to print `done.` https://stackoverflow.com/questions/42245170/how-to-enable-timing-magics-for-every-cell-in-jupyter-notebook – Andrew Ryan Jan 04 '23 at 19:47

0 Answers0