Inheritance diagram for IPython.core.magics.extension:
Implementation of magic functions for the extension machinery.
Magics to manage the IPython extensions system.
Print docstring if incorrect arguments were passed
Make an entry in the options_table for fn, with value optstr
Format a string for latex inclusion.
Download and install an extension from a URL, e.g.:
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.
Parse options passed to an argument string.
The interface is similar to that of getopt(), but it returns back a Struct with the options as keys and the stripped argument string still as a string.
arg_str is quoted as a true sys.argv vector by using shlex.split. This allows us to easily expand variables, glob files, quote arguments, etc.
-mode: default ‘string’. If given as ‘list’, the argument string is returned as a list (split on whitespace) instead of a string.
-list_all: put all option values in lists. Normally only options appearing more than once are put in a list.
-posix (True): whether to split the input line in POSIX mode or not, as per the conventions outlined in the shlex module from the standard library.
Reload an IPython extension by its module name.
Unload an IPython extension by its module name.