cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Wrong Path Databricks Repos

Ramseths
New Contributor

In a Databricks environment, I have cloned a repository that I have in Azure DevOps Repos, the repository is inside the path:

Workspace/Repos/<user_mail>/my_repo.

Then when I create a Python script that I want to call in a notebook using an import: import myscript it tells me that it does not exist and this is because the path that launches the notebook is the following:

databricks/driver/

However, in another Databricks environment, I did the same exercise and it worked. Even the path I get is this: Workspace/Repos/<user_mail>/my_repo when executing !pwd.

Where can I adjust so that it is not the path databricks driver?

1 REPLY 1

NandiniN
Honored Contributor
Honored Contributor

Hi @Ramseths ,

If your notebook and script are in the same path, it would have picked the same relative path.
Is your notebook located in /databricks/driver?
Thanks!
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!