I often get distracted when trying to run large epochs or sections of code. Inevitably I forget that I was even training a model or get distracted for hours by my daughter. So I put together a quick sound alert that plays on the computer running Jupyter that I thought others might find helpful.
## Import up sound alert dependencies from IPython.display import Audio, display def allDone(): display(Audio(url='https://sound.peal.io/ps/audios/000/000/537/original/woo_vu_luvub_dub_dub.wav', autoplay=True)) ## Insert whatever audio file you want above
Execute the sound whenever you are at the end of code that takes a longer time.
Working on also setting it up to play different sound alerts when exceptions are thrown while running code.