IPython 8.4.0 Pypi GitHub Homepage
Other Docs
Parameters
parse_options(self, arg_str, opt_str, *long_opts, **kw)

The interface is similar to that of getopt.getopt , but it returns a ~IPython.utils.struct.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.

Parameters

arg_str : str

The arguments to parse.

opt_str : str

The options specification.

mode : str, default 'string'

If given as 'list', the argument string is returned as a list (split on whitespace) instead of a string.

list_all : bool, default False

Put all option values in lists. Normally only options appearing more than once are put in a list.

posix : bool, default 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.

Parse options passed to an argument string.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /IPython/core/magic.py#609
type: <class 'function'>
Commit: