Export Notebook or Directory (Workspaces)
Arguments
- path
Absolute path of the notebook or directory.
- format
One of
AUTO,SOURCE,HTML,JUPYTER,DBC,R_MARKDOWN. Default isSOURCE.- host
Databricks workspace URL, defaults to calling
db_host().- token
Databricks workspace token, defaults to calling
db_token().- output_path
Path to export file to, ensure to include correct suffix.
- direct_download
Boolean (default:
FALSE), ifTRUEdownload file contents directly to file. Must also specifyoutput_path.- perform_request
If
TRUE(default) the request is performed, ifFALSEthe httr2 request is returned without being performed.
Details
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.
See also
Other Workspace API:
db_workspace_delete(),
db_workspace_get_status(),
db_workspace_import(),
db_workspace_list(),
db_workspace_mkdirs()
