bundles / IPython 9.17.0 / IPython / lib / demo / IPythonDemo
class
IPython.lib.demo:IPythonDemo
Signature
class IPythonDemo(src, title = '', arg_str = '', auto_all = None, format_rst = False, formatter = terminal, style = default)Members
Summary
Class for interactive demos with IPython's input processing applied.
Extended Summary
This subclasses Demo, but instead of executing each block by the Python interpreter (via exec), it actually calls IPython on it, so that any input filters which may be in place are applied to the input block.
If you have an interactive environment which exposes special input processing, you can use this class instead to write demo scripts which operate exactly as if you had typed them interactively. The default Demo class requires the input to be valid, pure Python code.
Aliases
IPython.lib.demo.IPythonDemo