I am trying to use ipython to display an audio. My idea is that I have a loop performing some tasks, and when the tasks for that loop are completed I want an alarm to sound. Therefore, the loop would essentialy look like this:
for i in range(5):
if True:
IPython.display.Audio("alarm.mp3", autoplay=True)
else:
pass
However, this does not play any sound at all, nor creates the widget. What other libraries can I use, or how can I fix this using the ipython?