pannb package¶
A panflute filter that process ipynb inputs.
-
pannb.
CONVERT_CELL_OUTPUT_PRIORITY
= ('markdown', 'html', 'latex')¶ priority for converting from raw-block format to AST markdown first because if exist, it is likely considered a source format to be converted from
-
pannb.
PANNBPANDOCARGS
: list = []¶ specify extra pandoc args used when calling convert_text
-
pannb.
main
(doc: Doc | None = None) → Any[source]¶ a pandoc filter converting math in code block.
Fenced code block with class math will be runned using texp.
-
pannb.
prepare_jupytext_metadata
(doc: Doc | None) → None[source]¶ Replace doc metadata with jupytext metadata.
-
pannb.
remove_cell_input_python
(element=None, doc: Doc | None = None) → list | None[source]¶ Delete ipynb cell input with python code.
-
pannb.
remove_code_cell_classes
(element=None, doc: Doc | None = None) → Div | None[source]¶ Remove code-cell classes from code-cell.
Pandoc by default inject a CSS that indent class with code. Doing this will remove that from from output code cells, hence also remove that extra indentation.