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

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

@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!

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