cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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
New Contributor III

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
New Contributor III

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
New Contributor III

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
New Contributor III

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

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