cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
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
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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.