dev.docs.patch_nbs
#
Patch notebooks.
Module Contents#
Functions#
Patch notebooks. |
|
Insert tags to a notebook cell. |
|
Prepend source lines to cell source if not there already. |
Data#
Resourcse-intensive notebooks to exclude adding Thebe buttons to. |
|
Cell source key. |
|
Code cell type. |
|
Markdown cell type. |
API#
- dev.docs.patch_nbs.EXCLUDE_THEBE#
[‘find_tracks’, ‘find_tracks_trackpy’]
Resourcse-intensive notebooks to exclude adding Thebe buttons to.
- dev.docs.patch_nbs.SRC#
‘source’
Cell source key.
- dev.docs.patch_nbs.CODE#
‘code’
Code cell type.
- dev.docs.patch_nbs.MD#
‘markdown’
Markdown cell type.
- dev.docs.patch_nbs.patch_nbs()#
Patch notebooks.
Patch Thebe buttons in. Insert
parameters
andthebe-init
tags to the first code cell. Inserthide-input
tags to code cells.
- dev.docs.patch_nbs.insert_tag(
- cell: nbformat.NotebookNode,
- tags_to_insert: list[str],
Insert tags to a notebook cell.
Parameters#
cell: Notebook cell to insert tags to.
tags_to_insert: Tags to insert.
References#