Skip to content

Cell Exports

Angus Hollands edited this page Apr 21, 2021 · 2 revisions

Notebook cells are either excluded or ignored during module generation (and therefore imports) according to the tags of each cell:

  • Cells with a export tag are included in the generated module.
  • Cells with a docstring tag are added to the top of the generated module as a docstring

This behaviour can be disabled by setting the enabled trait of LiteraryTagAllowListPreprocessor to False. This can be done on the command-line (e.g. when running literary build --LiteraryTagAllowListPreprocessor.enabled=False), or in a configuration file, e.g.

{
    "LiteraryTagAllowListPreprocessor": {
        "enabled": false
    }
}

Notebook Development

Development of Literate notebooks using the IPython extension.

Package Development

Building packages from a collection of Literate notebooks.

Literary Development

About Literary

Clone this wiki locally