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

test_data
New Contributor III
 

Hubert-Dudek
Databricks MVP

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


My blog: https://databrickster.medium.com/