| 1 | initial version |
You can try this on any new browser.
def done():
return html('!audio src="http://www.radokirov.com/gong.ogg" autoplay> Your browser does not support the audio element. !/audio>')
for i in range(10**6):
pass
done()
Replace ! with < . I could not make the code display otherwise.
In the future a function "done()" along with a sound file can be a part of the notebook. I will remove the .ogg file from my server in the future to prevent too much hotlinking (so don't freak out if this doesn't work).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.