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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file example_magic-0.1.2.tar.gz.

File metadata

  • Download URL: example_magic-0.1.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for example_magic-0.1.2.tar.gz
Algorithm Hash digest
SHA256 84534ccaad89fd9779a1cc82c9fe140dd54513ac0f4a8437e6ccd702e1011532
MD5 45d05729cd0724a57597eab630e6f292
BLAKE2b-256 c7b0057689f0db183ed18beb49635e2496fc7428d796448ccba98eba3a770c88

See more details on using hashes here.

File details

Details for the file example_magic-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: example_magic-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for example_magic-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2eed92f24038db314ccc7d8ccb6d17f34d4e8a9b7a5ccff15bd0ddc12d010d
MD5 3349cf2173d7c54785c47d9d2bb25ac0
BLAKE2b-256 f05d8e0c470d50c9b518ad6009ae6dab81d054a46ee48a021c19977f662d0173

See more details on using hashes here.

Supported by

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