Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Call AttributeLoad Str attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad ListLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad TupleLoad Num Num Num Num Num Num Str Str Str Str Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad Dict Str Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assert CompareEq Call NameLoad NameLoad Num BinOpMod Str TupleLoad NameLoad NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Num TupleLoad NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Num NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore ListLoad Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body For NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr keyword NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign SubscriptStore NameLoad Index Num BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore ListLoad For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Print Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr BinOpMult Str Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Print Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr BinOpMult Str Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Print Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If NameLoad body If AttributeLoad NameLoad attr body Print Str Print Str Print TupleLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Print NameLoad Print TupleLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Print TupleLoad orelse Print Str Print TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad AttributeLoad NameLoad attr body Print NameLoad Print TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Print Str Print Str Print TupleLoad Print Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Print TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore IfExp CompareIs NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num If BoolOpAnd Call AttributeLoad NameLoad attr Str NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore BoolOpOr NameLoad BinOpMod Str NameLoad Assign NameStore BoolOpOr NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict NameLoad Dict NameLoad NameLoad Assign NameStore Dict NameLoad Dict NameLoad NameLoad Return Dict NameLoad BinOpAdd Str NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad decorator_list
N/A N/A 
A base class for a configurable application.

Authors:

* Brian Granger
* Min RK
 N/A logging N/A os N/A re N/A sys copy deepcopy IPython.config.configurable SingletonConfigurable IPython.config.loader KeyValueConfigLoader PyFileConfigLoader Config ArgumentError IPython.utils.traitlets Unicode List Int Enum Dict Instance TraitError IPython.utils.importstring import_item IPython.utils.text indent wrap_paragraphs dedent N/A option_description N/A N/A 
IPython command-line arguments are passed as '--<flag>', or '--<name>=<value>'.

Arguments that take values are actually convenience aliases to full
Configurables, whose aliases are listed on the help line. For more information
on full configurables, see '--help-all'.
 strip N/A keyvalue_description N/A N/A 
Parameters are set from command-line arguments of the form:
`--Class.trait=value`.
This line is evaluated in Python, so simple expressions are allowed, e.g.::
`--C.a='range(3)'` For setting C.a=[0,1,2].
 strip N/A subcommand_description N/A N/A N/A N/A 
Subcommands are launched as `{app} cmd [args]`. For information on using
subcommand 'cmd', do: `{app} cmd -h`.
 strip format app N/A N/A N/A os path basename N/A N/A sys argv N/A 0 ApplicationError N/A Exception N/A N/A N/A Application N/A SingletonConfigurable N/A N/A A singleton application with full configuration support. N/A name N/A Unicode application N/A description N/A Unicode This is an application. N/A option_description N/A Unicode option_description N/A keyvalue_description N/A Unicode keyvalue_description N/A subcommand_description N/A Unicode subcommand_description N/A examples N/A Unicode N/A classes N/A List N/A N/A version N/A Unicode 0.0 N/A log_level N/A Enum N/A 0 10 20 30 40 50 DEBUG INFO WARN ERROR CRITICAL default_value N/A logging WARN config True help Set the log level by value or name. _log_level_changed N/A N/A self name old new N/A N/A N/A Adjust the log level when log_level is set. N/A N/A isinstance new str N/A N/A new N/A getattr logging new N/A N/A self log_level new N/A N/A N/A N/A self log setLevel new N/A N/A aliases N/A Dict N/A log-level Application.log_level N/A flags N/A Dict _flags_changed N/A N/A self name old new N/A N/A N/A ensure flags dict is valid N/A N/A key value N/A N/A new items N/A N/A N/A N/A len value 2 N/A Bad flag: %r:%s N/A key value N/A N/A isinstance N/A value N/A 0 N/A dict Config N/A Bad flag: %r:%s N/A key value N/A N/A isinstance N/A value N/A 1 str N/A Bad flag: %r:%s N/A key value N/A N/A subcommands N/A Dict N/A subapp N/A Instance IPython.config.application.Application allow_none True N/A extra_args N/A List Unicode __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A SingletonConfigurable __init__ self kwargs N/A N/A N/A N/A self classes insert 0 N/A self __class__ N/A N/A N/A self init_logging N/A _config_changed N/A N/A self name old new N/A N/A N/A N/A N/A SingletonConfigurable _config_changed self name old new N/A N/A N/A N/A self log debug Config changed: N/A N/A N/A N/A self log debug N/A repr new N/A init_logging N/A N/A self N/A N/A N/A Start logging for this application.

        The default is to log to stdout using a StreaHandler. The log level
        starts at loggin.WARN, but this can be adjusted by setting the 
        ``log_level`` attribute.
         N/A N/A self log N/A N/A logging getLogger N/A N/A self __class__ __name__ N/A N/A N/A N/A self log setLevel N/A self log_level N/A N/A N/A N/A sys executable endswith pythonw.exe N/A N/A N/A self _log_handler N/A N/A logging StreamHandler N/A open N/A os devnull w N/A N/A N/A self _log_handler N/A N/A logging StreamHandler N/A N/A self _log_formatter N/A N/A logging Formatter [%(name)s] %(message)s N/A N/A N/A N/A self _log_handler setFormatter N/A self _log_formatter N/A N/A N/A N/A self log addHandler N/A self _log_handler N/A initialize N/A N/A self argv N/A None N/A N/A Do the basic steps to configure me.
        
        Override in subclasses.
         N/A N/A N/A self parse_command_line argv N/A start N/A N/A self N/A N/A N/A Start the app mainloop.
        
        Override in subclasses.
         N/A N/A N/A self subapp None N/A N/A N/A N/A N/A self subapp start N/A print_alias_help N/A N/A self N/A N/A N/A Print the alias part of the help. N/A N/A N/A self aliases N/A N/A N/A lines N/A N/A classdict N/A N/A cls N/A self classes N/A N/A c N/A N/A N/A cls mro N/A -3 N/A N/A N/A classdict N/A N/A c __name__ c N/A N/A alias longname N/A N/A N/A self aliases items N/A N/A N/A classname traitname N/A N/A longname split . 1 N/A cls N/A classdict N/A classname N/A trait N/A N/A N/A cls class_traits config True N/A traitname N/A help N/A N/A N/A N/A cls class_get_trait_help trait splitlines N/A N/A help N/A 0 N/A N/A N/A N/A help N/A 0 replace longname alias N/A  (%s) longname N/A N/A N/A lines extend help N/A N/A N/A N/A os linesep join lines N/A print_flag_help N/A N/A self N/A N/A N/A Print the flag part of the help. N/A N/A N/A self flags N/A N/A N/A lines N/A N/A N/A m N/A cfg help N/A N/A N/A self flags items N/A N/A N/A N/A lines append N/A -- m N/A N/A N/A lines append N/A indent N/A dedent N/A N/A help strip N/A N/A N/A N/A os linesep join lines N/A print_options N/A N/A self N/A N/A N/A N/A N/A N/A self flags N/A N/A self aliases N/A N/A N/A lines N/A Options N/A N/A N/A lines append N/A - N/A len N/A lines N/A 0 N/A N/A N/A lines append N/A p N/A wrap_paragraphs N/A self option_description N/A N/A N/A N/A lines append p N/A N/A N/A lines append N/A N/A N/A N/A os linesep join lines N/A N/A N/A self print_flag_help N/A N/A N/A self print_alias_help N/A N/A N/A print_subcommands N/A N/A self N/A N/A N/A Print the subcommand part of the help. N/A N/A N/A self subcommands N/A N/A N/A lines N/A Subcommands N/A N/A N/A lines append N/A - N/A len N/A lines N/A 0 N/A N/A N/A lines append N/A p N/A wrap_paragraphs N/A self subcommand_description N/A N/A N/A N/A lines append p N/A N/A N/A lines append N/A N/A subc N/A cls help N/A N/A N/A self subcommands items N/A N/A N/A N/A lines append subc N/A help N/A N/A N/A N/A lines append N/A indent N/A dedent N/A N/A help strip N/A N/A N/A lines append N/A N/A N/A N/A os linesep join lines N/A print_help N/A N/A self classes N/A False N/A N/A Print the help for each Configurable class in self.classes.
        
        If classes=False (the default), only flags and aliases are printed.
         N/A N/A N/A self print_subcommands N/A N/A N/A self print_options N/A classes N/A N/A N/A self classes N/A N/A Class parameters N/A ---------------- N/A N/A N/A p N/A wrap_paragraphs N/A self keyvalue_description N/A N/A p N/A N/A N/A cls N/A self classes N/A N/A N/A N/A cls class_print_help N/A N/A N/A N/A To see all available configurables, use `--help-all` N/A N/A N/A print_description N/A N/A self N/A N/A N/A Print the application description. N/A p N/A wrap_paragraphs N/A self description N/A N/A p N/A N/A N/A print_examples N/A N/A self N/A N/A N/A Print usage and examples.

        This usage string goes at the end of the command line help string
        and should contain examples of the application's usage.
         N/A N/A self examples N/A N/A Examples N/A -------- N/A N/A N/A N/A indent N/A dedent N/A N/A N/A self examples strip N/A N/A N/A print_version N/A N/A self N/A N/A N/A Print the version string. N/A N/A self version N/A update_config N/A N/A self config N/A N/A N/A Fire the traits events when the config is updated. N/A newconfig N/A deepcopy N/A self config N/A N/A N/A newconfig _merge config N/A N/A self config newconfig N/A initialize_subcommand N/A N/A self subc argv N/A None N/A N/A Initialize a subcommand with argv. N/A N/A subapp help N/A N/A N/A self subcommands get subc N/A N/A isinstance subapp str N/A N/A subapp N/A import_item subapp N/A N/A N/A N/A self __class__ clear_instance N/A N/A self subapp N/A N/A subapp instance N/A N/A N/A N/A self subapp initialize argv N/A parse_command_line N/A N/A self argv N/A None N/A N/A Parse the command line arguments. N/A argv N/A N/A argv None N/A N/A sys argv N/A 1 argv N/A N/A N/A self subcommands N/A N/A len argv 0 N/A N/A N/A subc subargv N/A N/A argv N/A 0 N/A argv N/A 1 N/A N/A N/A N/A re match ^\w(\-?\w)*$ subc N/A subc N/A self subcommands N/A N/A N/A N/A self initialize_subcommand subc subargv N/A N/A N/A -h argv N/A --help argv N/A --help-all argv N/A N/A N/A N/A self print_description N/A N/A N/A self print_help N/A --help-all argv N/A N/A N/A self print_examples N/A N/A N/A self exit 0 N/A N/A --version argv N/A N/A N/A N/A self print_version N/A N/A N/A self exit 0 N/A loader N/A KeyValueConfigLoader argv argv aliases N/A self aliases flags N/A self flags N/A N/A N/A config N/A N/A loader load_config N/A N/A N/A self update_config config N/A N/A N/A N/A TraitError ArgumentError N/A e N/A N/A N/A N/A self print_description N/A N/A N/A self print_help N/A N/A N/A self print_examples N/A N/A N/A N/A self log fatal N/A str e N/A N/A N/A self exit 1 N/A N/A self extra_args N/A loader extra_args N/A load_config_file N/A N/A self filename path N/A None N/A N/A Load a .py based config file by filename and path. N/A loader N/A PyFileConfigLoader filename path path N/A config N/A N/A loader load_config N/A N/A N/A self update_config config N/A generate_config_file N/A N/A self N/A N/A N/A generate default config file from Configurables N/A lines N/A N/A # Configuration file for %s. N/A self name N/A N/A N/A lines append N/A N/A N/A lines append c = get_config() N/A N/A N/A lines append N/A cls N/A self classes N/A N/A N/A N/A lines append N/A N/A cls class_config_section N/A N/A N/A join lines N/A exit N/A N/A self exit_status N/A 0 N/A N/A N/A N/A N/A self log debug N/A Exiting application: %s N/A self name N/A N/A N/A sys exit exit_status N/A N/A boolean_flag N/A N/A name configurable set_help unset_help N/A N/A N/A Helper for building basic --trait, --no-trait flags.
    
    Parameters
    ----------
    
    name : str
        The name of the flag.
    configurable : str
        The 'Class.trait' string of the trait to be set/unset with the flag
    set_help : unicode
        help string for --name flag
    unset_help : unicode
        help string for --no-name flag
    
    Returns
    -------
    
    cfg : dict
        A dict with two keys: 'name', and 'no-name', for setting and unsetting
        the trait, respectively.
     N/A set_help N/A set_help N/A set %s=True configurable N/A unset_help N/A unset_help N/A set %s=False configurable N/A N/A cls trait N/A N/A configurable split . N/A setter N/A cls N/A trait True N/A unsetter N/A cls N/A trait False N/A N/A name N/A no- name N/A setter set_help N/A unsetter unset_help N/A