LoginSignup
13
8

More than 3 years have passed since last update.

Google colabで実行が終わったら音で通知させたい時.

Last updated at Posted at 2020-06-09

結論

def beep():
  from google.colab import output
  output.eval_js('new Audio(\
"https://upload.wikimedia.org/wikipedia/commons/0/05/Beep-09.ogg")\
.play()') 
beep()

これでbeep()が実行されれば音が鳴ります.

もっといろんな音を出したいときは,"https://...の引数を変えればいいんだろうけど,見つからなかった.(教えてください).

参考

13
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
8