Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to be notified when a cell finishes execution in VSCode Jupyter Notebook?

I'm using Jupyter Notebook on VSCode and would like to be notified when a cell finishes execution. I searched and was not able to find any extension for this task. Is there a way to get this working?

like image 825
Sruthi V Avatar asked Dec 27 '25 16:12

Sruthi V


2 Answers

Crucially, nobody wants to be notified when each and every cell is done executing. Rather, we want to be notified when a long-running cell finishes. So there should be a way to set a conditional such that if a cell finishes running under that threshold of time, there's no sound alert, but for the cells that take a long time to run, those cells play the alert sound upon completion.

Otherwise your notebook will sound like an orchestra of unnecessary "false positives" playing audible alerts for short-running cells.

like image 137
JohnnyUtah Avatar answered Dec 30 '25 06:12

JohnnyUtah


As of vscode v1.87 this settings will be:

Accesibility > Signals: Notebook Cell Completed
Accesibility > Signals: Notebook Cell Failed

Prior to vscode v1.87:

There are audio cues for

Notebook Cell Completed
Notebook Cell Failed

being added to vscode, see Implement Audio cues on cell execution completed.

Should be under the setting Audio Cues: Notebook Cell Completed and Audio Cues: Notebook Cell Failed

like image 36
Mark Avatar answered Dec 30 '25 06:12

Mark