bundles / IPython 9.17.0 / IPython / lib / demo / LineDemo
class
IPython.lib.demo:LineDemo
Signature
class LineDemo(src, title = '', arg_str = '', auto_all = None, format_rst = False, formatter = terminal, style = default)Members
Summary
Demo where each line is executed as a separate block.
Extended Summary
The input script should be valid Python code.
This class doesn't require any markup at all, and it's meant for simple scripts (with no nesting or any kind of indentation) which consist of multiple lines of input to be executed, one at a time, as if they had been typed in the interactive prompt.
Note: the input can not have any indentation, which means that only single-lines of input are accepted, not even function definitions are valid.
Aliases
IPython.lib.demo.LineDemo