IPython Documentation

Table Of Contents

Previous topic

core.application

Next topic

core.builtin_trap

This Page

core.autocall

Module: core.autocall

Inheritance diagram for IPython.core.autocall:

Autocall capabilities for IPython.core.

Authors:

  • Brian Granger
  • Fernando Perez
  • Thomas Kluyver

Notes

Classes

ExitAutocall

class IPython.core.autocall.ExitAutocall(ip=None)

Bases: IPython.core.autocall.IPyAutocall

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.

__init__(ip=None)
set_ip(ip)

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.

IPyAutocall

class IPython.core.autocall.IPyAutocall(ip=None)

Bases: object

Instances of this class are always autocalled

This happens regardless of ‘autocall’ variable state. Use this to develop macro-like mechanisms.

__init__(ip=None)
set_ip(ip)

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.

ZMQExitAutocall

class IPython.core.autocall.ZMQExitAutocall(ip=None)

Bases: IPython.core.autocall.ExitAutocall

Exit IPython. Autocallable, so it needn’t be explicitly called.

Parameters :

keep_kernel : bool

If True, leave the kernel alive. Otherwise, tell the kernel to exit too (default).

__init__(ip=None)
set_ip(ip)

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.