nbprint.config.core.PapermillParameters¶
- pydantic model nbprint.config.core.PapermillParameters[source]¶
Bases:
ParametersPapermill parameters function implicitly as a dict
Show JSON schema
{ "title": "PapermillParameters", "description": "Papermill parameters function implicitly as a dict", "type": "object", "properties": { "tags": { "items": { "type": "string" }, "title": "Tags", "type": "array" }, "role": { "$ref": "#/$defs/Role", "default": "parameters" }, "ignore": { "default": true, "title": "Ignore", "type": "boolean" }, "css": { "anyOf": [ { "type": "string" }, { "format": "path", "type": "string" }, { "type": "null" } ], "default": "", "title": "Css" }, "esm": { "anyOf": [ { "type": "string" }, { "format": "path", "type": "string" }, { "type": "null" } ], "default": "", "title": "Esm" }, "classname": { "anyOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": "", "title": "Classname" }, "attrs": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "title": "Attrs" }, "vars": { "additionalProperties": true, "title": "Vars", "type": "object" } }, "$defs": { "Role": { "enum": [ "undefined", "configuration", "context", "outputs", "parameters", "content", "page", "layout" ], "title": "Role", "type": "string" } } }
- Fields:
vars (dict[str, Any])
- field vars: dict[str, Any] [Optional]¶
- generate(metadata: dict, **_) 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
- model_post_init(context: Any, /) None¶
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self – The BaseModel instance.
context – The context.