Export a Notebook and Re-Import as a Copy
A 2-step recipe with Databricks. We can help you get access.
Recipe · 2 steps
Export a Notebook and Re-Import as a Copy
with Databricks
Export a notebook and re-import its content to a new path.
- Export the source notebook in SOURCE format and capture its base64-encoded content.
- Import the exported content into the destination path, overwriting any existing object there.
What you'll need to have ready
- source_path: The absolute path of the notebook to export.
- destination_path: The absolute path to write the copied notebook to.
- language: The notebook language (SCALA, PYTHON, SQL, or R).
For your developer
Arazzo workflow databricks:export-and-reimport-notebook, 2 operations: exportWorkspaceObject → importWorkspaceObject. Specs on APIs.io.