bundles / IPython 9.5.0 / IPython / lib / demo / Demo / __call__
function
IPython.lib.demo:Demo.__call__
source: /IPython/lib/demo.py:452
Signature
def __call__(self, index = None)Summary
run a block of the demo.
Extended Summary
If index is given, it should be an integer >=1 and <= nblocks. This means that the calling convention is one off from typical Python lists. The reason for the inconsistency is that the demo always prints 'Block n/N, and N is the total, so it would be very odd to use zero-indexing here.
Aliases
IPython.lib.demo.Demo.__call__