notify when execution/command is completed

后端 未结 5 635
无人共我
无人共我 2021-02-07 07:06

How do I get IPython to notify me when a command has been executed? Can I get it to use the bell/alert, or by pop-up? I\'m running Anaconda on iTerm on OS X 10.8.5.

5条回答
  •  庸人自扰
    2021-02-07 07:36

    As an alternative, I wrote a simple module/decorator function to notify on function completed (works only on MAC)

    Example:

    from ipynotifyer import notifyOnComplete as nf
    
    
    @nf()
    def divide_by_five():
        return 5/5
    
    @nf(timer=True)
    def divide_by_ten():
        return 5/10
    

    https://github.com/Casyfill/ipython_notifier

提交回复
热议问题