nbprint.config.outputs.NBConvertOutputs¶
- pydantic model nbprint.config.outputs.NBConvertOutputs[source]¶
Bases:
Outputs- field target: Literal['ipynb', 'notebook', 'html', 'webhtml', 'pdf', 'webpdf'] | None = 'html'¶
- field execute: bool | None = True¶
- field timeout: int | None = 600¶
- field template: str | None = 'nbprint'¶
- field collect_outputs: bool = False¶
Whether to collect cell outputs into the context. Cells with tag nbprint:output:<key> will be collected under <key>.
- field execute_hook: PyObjectPath | None = None¶
A callable hook that is called after nbconvert execution of the notebook. It is passed the config instance. If it returns something non-None, that value is returned by run instead of the output path.NOTE: Parent/child class hooks may also be called.
- field nbconvert_hook: PyObjectPath | None = None¶
A callable hook that is called after nbconvert of the previously executed notebook. It is passed the config instance. If it returns something non-None, that value is returned by run instead of the output path.NOTE: Parent/child class hooks may also be called.
- property outputs: dict[int | str, list[dict[str, str]]]¶
- NBConvertOutputs.validate_target[source]
- run(config: Configuration, gen: NotebookNode) Path[source]¶