cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a Python function defined in my git-repo module within the DB notebook?

User16790091296
Contributor II

I have a function within a module in my git-repo. I want to import that to my DB notebook - how can I do that?

1 ACCEPTED SOLUTION

Accepted Solutions

aladda
Honored Contributor II
Honored Contributor II

Databricks Repos allows you to sync your work in Databricks with a remote Git repository. This makes it easier to implement development best practices. Databricks supports integrations with GitHub, Bitbucket, and GitLab. Using Repos you can bring your Python function into your databricks workspace and use that in a notebook either using Notebook Workflows (via %run) or creating a library and installing it on to your cluster

View solution in original post

1 REPLY 1

aladda
Honored Contributor II
Honored Contributor II

Databricks Repos allows you to sync your work in Databricks with a remote Git repository. This makes it easier to implement development best practices. Databricks supports integrations with GitHub, Bitbucket, and GitLab. Using Repos you can bring your Python function into your databricks workspace and use that in a notebook either using Notebook Workflows (via %run) or creating a library and installing it on to your cluster

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.