sharing notebooks in azure databricks

Anshal 2,246 Reputation points
2023-02-03T07:02:36.8866667+00:00

hi friends, if you want to re-use the notebook of the colleague how do it

a.       both are working on same workspace

b.      both working on different workspaces

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,080 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 85,586 Reputation points Microsoft Employee
    2023-02-03T10:17:37.58+00:00

    Hello @Anshal

    Thanks for the question and using MS Q&A platform.

    To share notebooks in Azure Databricks, you can follow these steps:

    1. If you and your colleague are working on the same workspace, you can simply share the notebook by clicking on the "Share" button in the notebook editor. User's image For more details, refer to Collaborate using Databricks notebooks
    2. If you and your colleague are working on different workspaces, you can export the notebook as a .dbc file and share it with your colleague. They can then import the .dbc file into their workspace by clicking on the "Import" button in the notebook editor.
      User's image

    There are couple of options to share the notebooks across workspaces.

    Option1: Repos for Git integration

    Databricks Repos provides repository-level integration with Git providers. You can develop code in an Azure Databricks notebook and sync it with a remote Git repository. Databricks Repos lets you use Git functionality such as cloning a remote repo, managing branches, pushing and pulling changes, and visually comparing differences upon commit.

    Databricks Repos also provides an API that you can integrate with your CI/CD pipeline.

    For more information about best practices for code development using Databricks Repos, see Best practices for integrating Databricks Repos with CI/CD workflows.

    Option2: Continuous integration and delivery on Azure Databricks using Azure DevOps that moves the code from one Workspace to the other Workspace.

    Hope this helps. Do let us know if you any further queries.


    Please don’t forget to Accept Answer wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful