db_workspace_export | R Documentation |
Export Notebook or Directory (Workspaces)
db_workspace_export(
path,
format = c("AUTO", "SOURCE", "HTML", "JUPYTER", "DBC", "R_MARKDOWN"),
host = db_host(),
token = db_token(),
perform_request = TRUE
)
path |
Absolute path of the notebook or directory. |
format |
One of |
host |
Databricks workspace URL, defaults to calling |
token |
Databricks workspace token, defaults to calling |
perform_request |
If |
Export a notebook or contents of an entire directory. If path does not exist,
this call returns an error RESOURCE_DOES_NOT_EXIST.
You can export a directory only in DBC
format. If the exported data exceeds
the size limit, this call returns an error MAX_NOTEBOOK_SIZE_EXCEEDED.
This
API does not support exporting a library.
At this time we do not support the direct_download
parameter and returns a
base64 encoded string.
base64 encoded string
Other Workspace API:
db_workspace_delete()
,
db_workspace_get_status()
,
db_workspace_import()
,
db_workspace_list()
,
db_workspace_mkdirs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.