跳转到主要内容

示例IPython魔法扩展(用于测试)

项目描述

示例IPython魔法

扩展,用于在IPython shell或IPy内核中添加两个示例魔法。

魔法的代码来自IPython文档

https://ipython-docs.pythonlang.cn/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')

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

example_magic-0.1.2.tar.gz (1.8 kB 查看哈希值)

上传时间:

构建分发

example_magic-0.1.2-py3-none-any.whl (7.1 kB 查看哈希值)

上传时间: Python 3

由以下机构支持