capabilities.work

Create Directory and Import Notebook

A 3-step recipe with Databricks. We can help you get access.

Recipe · 3 steps

Create Directory and Import Notebook

Create a directory, import a notebook, and verify it exists.

  1. Create the target directory and any necessary parent directories before importing.
  2. Import the base64-encoded notebook into the target path in SOURCE format, overwriting any existing object.
  3. Read the object status to confirm the imported notebook exists at the target path.
What you'll need to have ready
  • directory_path: The absolute directory path to create (must start with /).
  • notebook_path: The absolute path to import the notebook to (must start with /).
  • content: The base64-encoded notebook content to import.
  • language: The notebook language (SCALA, PYTHON, SQL, or R).
For your developer

Arazzo workflow databricks:import-notebook-and-verify, 3 operations: createWorkspaceDirectory → importWorkspaceObject → getWorkspaceObjectStatus. Specs on APIs.io.