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

SailajaB
Databricks Partner

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.