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: 

How to pass a variable which holds a value to child notebook using run command

SailajaB
Valued Contributor III

Hello,

We have 3 notebooks as below. And trying to send a variable where we pass the value to it via job to child notebook with %run command

Notebooks:

notebook_par,notebook_child1 and notebook_child2.

In parent note book we are calling notebook_child1 using %run command. Can we pass the required variables to child1 and child2 notebook (note we are calling child2 notebook in child1 using %run command)

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Atanu
Esteemed Contributor

@Sailaja B​ I think you can look into this doc on parameter. https://docs.databricks.com/notebooks/notebook-workflows.html#api

Let me know if this helps.Thanks.

View solution in original post

2 REPLIES 2

Atanu
Esteemed Contributor

@Sailaja B​ I think you can look into this doc on parameter. https://docs.databricks.com/notebooks/notebook-workflows.html#api

Let me know if this helps.Thanks.

Anonymous
Not applicable

Hey there @Sailaja B​ 

How's it going?

Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Cheers!

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