7
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jupyter Notebook で時間のかかる処理をしていて、計算が終わったら教えて欲しいとき

Last updated at Posted at 2019-01-08

Jupyter Notebook で時間のかかる処理をしていて、計算が終わったら教えて欲しいとき、セルの最後に

!osascript -e 'display dialog "終わったよ!"'

と書いておくと、無音でダイアログを出してくれて、しかもそのタイミングで画面を見ていなくても気づけるのでオススメ。

スクリーンショット 2019-06-10 15.52.03.png

もうちょっと凝りたければこんな感じ。

!osascript -e 'display dialog "その炭素原子は不斉です。" with icon stop'
スクリーンショット 2019-06-10 14.07.37.png
!osascript -e 'display dialog "その炭素原子は不斉です。" with icon caution'
スクリーンショット 2019-06-10 14.08.44.png
7
10
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
7
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?