lookatme.pres module

Defines Presentation specific objects

class lookatme.pres.Presentation(input_stream: Optional[IO] = None, input_str: Optional[str] = None, theme: str = 'dark', live_reload=False, single_slide=False, preload_extensions=None, safe=False, no_ext_warn=False, ignore_ext_failure=False, no_threads=False)[source]

Bases: object

Defines a presentation

get_slide_scroll_lines(width: int, height: int) → int[source]

Return the number of lines that need to be scrolled for each slide

get_tui() → lookatme.tui.MarkdownTui[source]
reload(data=None)[source]

Reload this presentation

Parameters:data (str) – The data to render for this slide deck (optional)
reload_watcher()[source]

Watch for changes to the input filename, automatically reloading when the modified time has changed.

run(start_slide=0)[source]

Run the presentation!

tui_init_sync()[source]
warn_exts(exts)[source]

Warn about source-provided extensions that are to-be-loaded