nbprint.config.core.Context¶
- pydantic model nbprint.config.core.Context[source]¶
Bases:
BaseModel- field tags: list[str] [Optional]¶
- field role: Role = Role.CONTEXT¶
- field ignore: bool = True¶
- field parameters: Parameters | None = None¶
- generate(metadata: dict | None, config: Configuration | None, parent: BaseModel | None = None, attr: str = '', counter: int | None = None, **kwargs) NotebookNode[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