IPython Documentation

Table Of Contents

Previous topic

core.magics.config

Next topic

core.magics.execution

This Page

core.magics.deprecated

Module: core.magics.deprecated

Inheritance diagram for IPython.core.magics.deprecated:

Deprecated Magic functions.

DeprecatedMagics

class IPython.core.magics.deprecated.DeprecatedMagics(shell)

Bases: IPython.core.magic.Magics

Magics slated for later removal.

__init__(shell)
arg_err(func)

Print docstring if incorrect arguments were passed

default_option(fn, optstr)

Make an entry in the options_table for fn, with value optstr

format_latex(strng)

Format a string for latex inclusion.

install_default_config(parameter_s='')

%install_default_config has been deprecated.

install_profiles(parameter_s='')

%install_profiles has been deprecated.

magics = {'cell': {}, 'line': {'install_profiles': 'install_profiles', 'install_default_config': 'install_default_config'}}
options_table = None
parse_options(arg_str, opt_str, *long_opts, **kw)

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.

Options:

-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.

registered = True
shell = None