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: 

Specify cluster when using dbutils.notebook API

ErikJ
New Contributor III

Hello! Anyone know if there is a way of specifying cluster when using dbutils.notebook.run() ? As i understand it, this command will create a job compute on the run? but what if I want to use my general purpose cluster? I have been thinking of %run but it just doesn't feel like a proper way of executing multiple notebooks from a "main" notebook..

2 ACCEPTED SOLUTIONS

Accepted Solutions

filipniziol
Esteemed Contributor

Hi @ErikJ ,

When you run a child notebook from parent notebook, the child notebook will use the same cluster.

View solution in original post

filipniziol
Esteemed Contributor

Hi @ErikJ ,

Check the docs:

filipniziol_0-1726815726928.png

Also you may run the help method:

.filipniziol_1-1726815769637.png
The parameters of the method are:
1. path
2. timeoutSeconds
3. arguments

View solution in original post

3 REPLIES 3

filipniziol
Esteemed Contributor

Hi @ErikJ ,

When you run a child notebook from parent notebook, the child notebook will use the same cluster.

ErikJ
New Contributor III

Thanks for the answear, could I ask from where you got this information? Feels like I've been searching for days now...

filipniziol
Esteemed Contributor

Hi @ErikJ ,

Check the docs:

filipniziol_0-1726815726928.png

Also you may run the help method:

.filipniziol_1-1726815769637.png
The parameters of the method are:
1. path
2. timeoutSeconds
3. arguments

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now