Notebook
laktory.models.resources.databricks.Notebook
¤
Bases: BaseModel
, PulumiResource
, TerraformResource
Databricks Notebook
ATTRIBUTE | DESCRIPTION |
---|---|
access_controls |
List of notebook access controls
TYPE:
|
dirpath |
Workspace directory containing the notebook. Filename will be assumed to be the same as local filepath. Used if path is not specified.
TYPE:
|
language |
Notebook programming language
TYPE:
|
lookup_existing |
Specifications for looking up existing resource. Other attributes will be ignored.
TYPE:
|
path |
Workspace filepath for the notebook
TYPE:
|
source |
Path to notebook in source code format on local filesystem.
TYPE:
|
Examples:
from laktory import models
notebook = models.resources.databricks.Notebook(
source="./notebooks/dlt/dlt_laktory_pl.py",
)
print(notebook.path)
#> /.laktory/dlt/dlt_laktory_pl.py
notebook = models.resources.databricks.Notebook(
source="./notebooks/create_view.py", dirpath="/views/"
)
print(notebook.path)
#> /views/create_view.py
--
laktory.models.resources.databricks.notebook.NotebookLookup
¤
Bases: ResourceLookup
ATTRIBUTE | DESCRIPTION |
---|---|
path |
Notebook path on the workspace
TYPE:
|
format |
Notebook format to export. Either
TYPE:
|