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

How we can add common file (.py) in notebook? example in notebook import common common.add(x,y)

test_data
New Contributor III
2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @test_data! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers in the community have an answer to your question first. Or else I will get back to you soon. Thanks.

Hubert-Dudek
Esteemed Contributor III

Please use Repos and in admin settings please enable "Files in Repo" than you will be able to import class in notebook:

from repo_folder.subfolders.file import your_class

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.