示例IPython magic扩展(用于测试)
example-magic的Python项目详细描述
示例IPython magic
用于在ipythonshell或IPy内核中添加两个示例magics的扩展。在
magics的代码取自IPython文档:
https://ipython.readthedocs.io/en/stable/config/custommagics.html#defining-custom-magics
安装
pip install example_magic
使用
您可以从IPython shell或使用Python内核的Jupyter lab/notebook中使用它:
In [1]: %load_ext example_magic
In [2]: %abra
Out[2]: ''
In [3]: %%cadabra
...: world
...:
Out[3]: ('', 'world\n')
- 项目
标签: