Notebook
laktory.models.resources.databricks.Notebook
¤
Bases: NotebookBase
Databricks Notebook
Examples:
import io
from laktory import models
notebook_yaml = '''
source: ./notebooks/dlt/dlt_laktory_pl.py
dirpath: notebooks/dlt/
access_controls:
- group_name: role-engineers
permission_level: CAN_RUN
'''
notebook = models.resources.databricks.Notebook.model_validate_yaml(
io.StringIO(notebook_yaml)
)
print(notebook.path)
# > /.laktory/notebooks/dlt/dlt_laktory_pl.py
References
| BASE | DESCRIPTION |
|---|---|
content_base64
|
The base64-encoded notebook source code. Conflicts with
TYPE:
|
format
|
TYPE:
|
language
|
(required with
TYPE:
|
md5
|
TYPE:
|
object_id
|
Unique identifier for a NOTEBOOK
TYPE:
|
object_type
|
TYPE:
|
source
|
Path to notebook in source code format on local filesystem. Conflicts with
TYPE:
|
| LAKTORY | DESCRIPTION |
|---|---|
access_controls
|
List of notebook access controls
TYPE:
|
dirpath
|
Workspace directory inside rootpath in which the notebook is deployed. Used only if
TYPE:
|
path_
|
Workspace filepath for the notebook. Overwrite
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
additional_core_resources |
TYPE:
|
filename |
Notebook file name
TYPE:
|
laktory.models.resources.databricks.notebook.NotebookLookup
¤
Bases: ResourceLookup
| PARAMETER | DESCRIPTION |
|---|---|
format
|
Notebook format to export. Either
TYPE:
|
path
|
Notebook path on the workspace
TYPE:
|