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 inside rootpath in which the notebook is deployed.
Used only if
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. Overwrite
TYPE:
|
rootpath |
Root directory to which all notebooks are deployed to. Can also be
configured by settings LAKTORY_WORKSPACE_LAKTORY_ROOT environment
variable. Default is
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_laktory_pl.py
notebook = models.resources.databricks.Notebook(
source="./notebooks/dlt/dlt_laktory_pl.py",
rootpath="/src/",
)
print(notebook.path)
# > /src/dlt_laktory_pl.py
notebook = models.resources.databricks.Notebook(
source="./notebooks/dlt/dlt_laktory_pl.py",
rootpath="/src/",
dirpath="notebooks/dlt/",
)
print(notebook.path)
# > /src/notebooks/dlt/dlt_laktory_pl.py
ATTRIBUTE | DESCRIPTION |
---|---|
filename |
Notebook file name
TYPE:
|
resource_key |
path with special characters
TYPE:
|
additional_core_resources |
TYPE:
|
--
laktory.models.resources.databricks.notebook.NotebookLookup
¤
Bases: ResourceLookup
ATTRIBUTE | DESCRIPTION |
---|---|
path |
Notebook path on the workspace
TYPE:
|
format |
Notebook format to export. Either
TYPE:
|