Today I came across with a very cool hack for staying informed about progress in the execution of my experiments using IPython notebooks. Normally, they take from minutes to hours and I am always eager to know the results. I have tried before to use a visual notification. However, an audio notification is better as it allows you to focus on other stuff.
I remembered that in OS X and Mac OS X you can type on the command-line something like:
$ say "Hello Dolly!"
and you will hear the speech synthesiser repeat your words.
It is very simple to use that functionality in an IPython notebook:
import os os.system('say "Hello Dolly!"')
Cool, isn’t it?