Warning

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=None, **kwargs)

Bases: IPython.core.magic.Magics

Magics to manage the IPython extensions system.

install_ext(parameter_s='')

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.

Parameters:

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

Load an IPython extension by its module name.

reload_ext(module_str)

Reload an IPython extension by its module name.

unload_ext(module_str)

Unload an IPython extension by its module name.

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