IPython Documentation

Table Of Contents

Previous topic

Module: core.pylabtools

Next topic

Module: core.splitinput

This Page

Module: core.shellapp

A mixin for Application classes that launch InteractiveShell instances, load extensions, etc.

Authors

  • Min Ragan-Kelley

1 Class

class IPython.core.shellapp.InteractiveShellApp(**kwargs)

Bases: IPython.config.configurable.Configurable

A Mixin for applications that start InteractiveShell instances.

Provides configurables for loading extensions and executing files as part of configuring a Shell environment.

The following methods should be called by the initialize() method of the subclass:

code_to_run

A trait for unicode strings.

default_extensions

An instance of a Python list.

exec_files

An instance of a Python list.

exec_lines

An instance of a Python list.

extensions

An instance of a Python list.

extra_extension

A trait for unicode strings.

file_to_run

A trait for unicode strings.

gui

An enum of strings that are caseless in validate.

init_code()

run the pre-flight code, specified via exec_lines

init_extensions()

Load all IPython extensions in IPythonApp.extensions.

This uses the ExtensionManager.load_extensions() to load all the extensions listed in self.extensions.

init_gui_pylab()

Enable GUI event loop integration, taking pylab into account.

init_path()

Add current working directory, ‘’, to sys.path

matplotlib

An enum of strings that are caseless in validate.

module_to_run

A trait for unicode strings.

pylab

An enum of strings that are caseless in validate.

pylab_import_all

A boolean (True, False) trait.

shell

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.