Skip to main content

Example IPython magic extension (used for testing)

Project description

example IPython magic

Extension for add two example magics in IPython shell or IPy kernel.

The code for the magics was taken from IPython docs:

https://ipython.readthedocs.io/en/stable/config/custommagics.html#defining-custom-magics

Installation

pip install example_magic

Usage

You can use it from IPython shell or in Jupyter lab/notebook with Python kernel:

In [1]: %load_ext example_magic                                       

In [2]: %abra                                                         
Out[2]: ''

In [3]: %%cadabra 
   ...: world 
   ...:                                                               
Out[3]: ('', 'world\n')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

example_magic-0.1.2.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

example_magic-0.1.2-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page