Function
slide
(file_path, noclear=False, format_rst=True, formatter="terminal",
style="native", auto_all=False, delimiter='...')
Source from the content-addressed store, hash-verified
| 632 | |
| 633 | |
| 634 | def slide(file_path, noclear=False, format_rst=True, formatter="terminal", |
| 635 | style="native", auto_all=False, delimiter='...'): |
| 636 | if noclear: |
| 637 | demo_class = Demo |
| 638 | else: |
| 639 | demo_class = ClearDemo |
| 640 | demo = demo_class(file_path, format_rst=format_rst, formatter=formatter, |
| 641 | style=style, auto_all=auto_all) |
| 642 | while not demo.finished: |
| 643 | demo() |
| 644 | try: |
| 645 | py3compat.input('\n' + delimiter) |
| 646 | except KeyboardInterrupt: |
| 647 | exit(1) |
| 648 | |
| 649 | if __name__ == '__main__': |
| 650 | import argparse |
Tested by
no test coverage detected