This adds the @bell
macro which can be used in Jupyter notebooks to play a .wav file once a command completes. This is a Julia port of ipy_cell_completion_bell.
using Pkg
Pkg.add("IJuliaBell")
using IJuliaBell
@bell sleep(3)
The package includes a .wav from Free Wave Samples (slightly shortened to reduce file size), but you can replace the installed bell.wav
file with another to use it instead (the file must be named bell.wav
, though, and be in the same directory, unless you change the source code of the package).