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.
相关问题
- How to deploy python flask application in conda ba
- Access IPython's profile history (history.sqli
- Pandas and NumPy default width change on startup
- prevent overlapping bars using seaborn with pandas
- Issues with tk in ipython/jupyter
相关文章
- cython in jupyter notebook
- python: ignoring leading “>>>” and “…” in interact
- PygraphViz Import Error With PyCharm
- Vim key map in jupyter notebook
- how to print source code of object I defined use
- CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- IPython won't start
- Jupyter Notebook doesn't show new environments
Recent versions of iTerm send notifications to notification center when there is output in a non-visible tab. They fold into notification center by default, but you can change them to stay on the screen in the Notifications preferences in System Preferences.
With the newest version of iTerm, you can use the alert on next mark functionality of the shell integration.
Are you using IPython Notebook, or IPython from the terminal? If you are using IPython Notebook, I suggest using the notify extension available from https://github.com/sjpfenninger/ipython-extensions (write up available here)
As an alternative, I wrote a simple module/decorator function to notify on function completed (works only on MAC)
Example:
https://github.com/Casyfill/ipython_notifier
Finally someone created a nice library for it.
You just install it:
Import it in your notebook:
and use a magic command:
and get a nice notification:
Git-page also shows how to load it automatically.