capabilities.work

Create a Directory and Import a Notebook

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

Recipe · 3 steps

Create a Directory and Import a Notebook

Create a workspace directory, import a notebook, and list to verify.

  1. Create the workspace directory and all necessary parent directories recursively.
  2. Import the base64-encoded notebook content into a path under the new directory, overwriting any existing object.
  3. List the directory contents to confirm the imported notebook is present.
What you'll need to have ready
  • token: Databricks personal access token for the Authorization header.
  • directoryPath: Absolute path of the workspace directory to create.
  • notebookPath: Absolute path (under the directory) to import the notebook to.
  • content: Base64-encoded notebook source content (max 10 MB).
  • language: Notebook language, one of SCALA, PYTHON, SQL, or R.
For your developer

Arazzo workflow microsoft-azure-databricks:create-directory-and-import-notebook, 3 operations: createWorkspaceDirectory → importWorkspaceObject → listWorkspaceObjects. Specs on APIs.io.