lookatme.contrib package¶
Module contents¶
This module handles loading and using lookatme_contriba modules
Contrib modules are directly used
-
lookatme.contrib.
contrib_first
(fn)[source]¶ A decorator that allows contrib modules to override default behavior of lookatme. E.g., a contrib module may override how a table is displayed to enable sorting, or enable displaying images rendered with ANSII color codes and box drawing characters, etc.
Contrib modules may ignore chances to override default behavior by raising the
lookatme.contrib.IgnoredByContrib
exception.
-
lookatme.contrib.
load_contribs
(contrib_names, safe_contribs, ignore_load_failure=False)[source]¶ Load all contrib modules specified by
contrib_names
. These should all be namespaced packages under thelookatmecontrib
namespace. E.g.lookatmecontrib.calendar
would be an extension provided by a contrib module, and would be added to anextensions
list in a slide’s YAML header ascalendar
.safe_contribs
is a set of contrib names that are manually provided by the user by the-e
flag or env variable of extensions to auto-load.