IPython Documentation

Table Of Contents

Previous topic

Module: core.alias

Next topic

Module: core.autocall

This Page

Module: core.application

An application for IPython.

All top-level applications should use the classes in this module for handling configuration and creating componenets.

The job of an Application is to create the master configuration object and then create the configurable objects, passing the config to them.

Authors:

  • Brian Granger
  • Fernando Perez
  • Min RK

1 Class

class IPython.core.application.BaseIPythonApplication(**kwargs)

Bases: IPython.config.application.Application

__init__(**kwargs)
aliases

An instance of a Python dict.

auto_create

A boolean (True, False) trait.

builtin_profile_dir

A trait for unicode strings.

classes

An instance of a Python list.

config_file_name

A trait for unicode strings.

config_file_paths

An instance of a Python list.

config_file_specified

An instance of a Python set.

config_files

An instance of a Python list.

copy_config_files

A boolean (True, False) trait.

crash_handler_class

A trait whose value must be a subclass of a specified class.

description

A trait for unicode strings.

excepthook(etype, evalue, tb)

this is sys.excepthook after init_crashhandler

set self.verbose_crash=True to use our full crashhandler, instead of a regular traceback with a short message (crash_handler_lite)

extra_config_file

A trait for unicode strings.

flags

An instance of a Python dict.

init_config_files()

[optionally] copy default config files into profile dir.

init_crash_handler()

Create a crash handler, typically setting sys.excepthook to it.

init_profile_dir()

initialize the profile dir

ipython_dir

A trait for unicode strings.

load_config_file(suppress_errors=True)

Load the config file.

By default, errors in loading config are handled, and a warning printed on screen. For testing, the suppress_errors option is set to False, so errors will make tests fail.

name

A trait for unicode strings.

overwrite

A boolean (True, False) trait.

profile

A trait for unicode strings.

profile_dir

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

stage_default_config_file()

auto generate default config file, and stage it into the profile.

verbose_crash

A boolean (True, False) trait.

version

A trait for unicode strings.