IPython Documentation

Table Of Contents

Previous topic

Module: core.magics.execution

Next topic

Module: core.magics.history

This Page


This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: core.magics.extension

Implementation of magic functions for the extension machinery.

1 Class

class IPython.core.magics.extension.ExtensionMagics(shell)

Bases: IPython.core.magic.Magics

Magics to manage the IPython extensions system.


Download and install an extension from a URL, e.g.:

%install_ext https://bitbucket.org/birkenfeld/ipython-physics/raw/d1310a2ab15d/physics.py

The URL should point to an importable Python module - either a .py file or a .zip file.


-n filename : Specify a name for the file, rather than taking it from
the URL.

Load an IPython extension by its module name.


Reload an IPython extension by its module name.


Unload an IPython extension by its module name.

Not all extensions can be unloaded, only those which define an unload_ipython_extension function.