cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Call a workspace notebook from a repository notebook

LJacobsen
New Contributor II

We have a Databricks workspace with several repositories. We'd like to have a place with shared configuration variables that can be accessed by notebooks in any repository.

I created a folder named Shared under the root workspace and in that folder, created a notebook named shared_configuration containing the common configuration values.

2023-10-04_14-46-04.png

 I am not able to call this notebook from notebooks within a repository. I've tried many variations of the path to the notebook but it always results in the error 

Notebook not found: '{notebook path}'. Notebooks can be specified via a relative path (./Notebook or ../folder/Notebook) or via an absolute path (/Abs/Path/to/Notebook). Make sure you are specifying the path correctly. 

LJacobsen_0-1696456391781.png

Is it possible to invoke a workspace notebook from inside a repository, and if so what is the correct syntax to do so?

Alternatively, is there some other recommended way to store common variables in a Databricks workspace that are accessible to notebooks in repositories?

 

1 REPLY 1

Thanks, I was able to implement a solution by storing a json file containing the shared config settings in the DBFS.

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