Automatically play sound in IPython notebook

后端 未结 7 1579
夕颜
夕颜 2020-12-08 02:01

I often run long-running cells in my IPython notebook. I\'d like the notebook to automatically beep or play a sound when the cell is finished executing. Is there some way to

7条回答
  •  独厮守ぢ
    2020-12-08 02:42

    Honorable mention.

    I came looking for this particular answer multiple times, but couldn't find it here.

    winsound.Beep(freq, time_in_millisec)
    

    I use:

    winsound.Beep(300, 200)
    winsound.Beep(300, 200)
    winsound.Beep(300, 700)
    

提交回复
热议问题