nbprint.config.core.Page¶
- pydantic model nbprint.config.core.Page[source]¶
Bases:
BaseModel- field top: PageRegion | None = None¶
- field top_left: PageRegion | None = None¶
- field top_left_corner: PageRegion | None = None¶
- field top_right: PageRegion | None = None¶
- field top_right_corner: PageRegion | None = None¶
- field bottom: PageRegion | None = None¶
- field bottom_left: PageRegion | None = None¶
- field bottom_left_corner: PageRegion | None = None¶
- field bottom_right: PageRegion | None = None¶
- field bottom_right_corner: PageRegion | None = None¶
- field left: PageRegion | None = None¶
- field left_top: PageRegion | None = None¶
- field left_bottom: PageRegion | None = None¶
- field right: PageRegion | None = None¶
- field right_top: PageRegion | None = None¶
- field right_bottom: PageRegion | None = None¶
- field counter_reset: bool = False¶
- field counter_style: str | None = None¶
- field size: PageSize | Tuple[float, float] | None = PageSize.letter¶
- field orientation: PageOrientation | None = PageOrientation.portrait¶
- field css: str = ''¶
- generate(metadata: dict, config: Configuration, parent: BaseModel, attr: str = 'page', **_) NotebookNode | list[NotebookNode] | None[source]¶
Generate a notebook node for this model. This will be called before the runtime of the notebook, use it for code generation.
Args:¶
metadata (dict): common cell metadata
Returns:¶
NotebookNode: the content of the notebook node