Important
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.
If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).
Module: core.shellapp
¶
A mixin for Application
classes that
launch InteractiveShell instances, load extensions, etc.
1 Class¶
- class IPython.core.shellapp.InteractiveShellApp(**kwargs)¶
Bases:
traitlets.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:init_shell()
(to be implemented by the subclass)
- 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 inself.extensions
.
- init_gui_pylab()¶
Enable GUI event loop integration, taking pylab into account.
- init_path()¶
Add current working directory, ‘’, to sys.path
Unlike Python’s default, we insert before the first
site-packages
ordist-packages
directory, so that it is after the standard library.Changed in version 7.2: Try to insert after the standard library, instead of first.
Changed in version 8.0: Allow optionally not including the current directory in sys.path