This documentation covers a development version of IPython. The development version may differ significantly from the latest stable release.
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).
Autocall capabilities for IPython.core.
- class IPython.core.autocall.IPyAutocall(ip=None)¶
Instances of this class are always autocalled
This happens regardless of ‘autocall’ variable state. Use this to develop macro-like mechanisms.
Will be used to set _ip point to current ipython instance b/f call
Override this method if you don’t want this to happen.
- class IPython.core.autocall.ExitAutocall(ip=None)¶
An autocallable object which will be added to the user namespace so that exit, exit(), quit or quit() are all valid ways to close the shell.
- class IPython.core.autocall.ZMQExitAutocall(ip=None)¶
Exit IPython. Autocallable, so it needn’t be explicitly called.
keep_kernel (bool) – If True, leave the kernel alive. Otherwise, tell the kernel to exit too (default).