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
Databricks Employee
Databricks Employee

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!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group