lookatme.tutorial module

Functions and sources for the markdown tutorial slides!

class lookatme.tutorial.Tutor(name: str, group: str, slides_md: str, impl_fn: Callable, order: int, lazy_formatting: Optional[Callable] = None)[source]

Bases: object

A class to handle/process tutorials for specific functionality

In addition to name, group, and slides content of the tutor, each Tutor must also be associated with the implementation.

get_md(rendered_example=True) → str[source]

Get the tutor’s markdown text after resolving any special markup contained in it.

opts. Dict[str, Any]
slides. Current can include `{
lookatme.tutorial.get_tutorial_help() → str[source]
lookatme.tutorial.get_tutorial_md(groups_or_tutors: List[str]) → Union[None, str][source]
lookatme.tutorial.get_tutors(group_or_tutor: str) → List[lookatme.tutorial.Tutor][source]
lookatme.tutorial.pretty_close_match(str1, str2)[source]
lookatme.tutorial.print_tutorial_help()[source]
lookatme.tutorial.tutor(group: str, name: str, slides_md: str, order: int = 99999, lazy_formatting: Optional[Callable] = None)[source]

Define tutorial slides by using this as a decorator on a function!