铃铛魔术朱庇特笔记本
cellbell的Python项目详细描述
伊普顿的贝尔魔法。在计算单元时敲钟(ipython shell或 Jupyter笔记本)已完成。
pip install cellbell
用作单元格或行魔法:
# Import import cellbell # line magic %ding my_long_function() # cell magic %%ding time.sleep(4) my_long_function() time.sleep(2) print("done")
也可以通过调用ding:
直接使用# Import import cellbell cellbell.ding()
灵感来自ipython-bell,但是 通过播放wav在所有系统上工作。