filipniziol
Esteemed Contributor

Hi @clentin ,

The steps:

1. Create your .py to be imported as a file and not a notebook
2. In the notebook that uses your .py file append its path to sys.path

Check my answer to the similar question for more details:
https://community.databricks.com/t5/data-engineering/trying-to-use-python-source-file-as-module-in-d...