-
Notifications
You must be signed in to change notification settings - Fork 1
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
}
}
Development of Literate notebooks using the IPython extension.
- Setting up the Environment
- Loading the IPython Extension
- Cell Exports
- Patching Classes
- Recommended Extensions
Building packages from a collection of Literate notebooks.