Hello @Abhishek Gaikwad ,
If you run a notebook that contains widgets, the specified notebook is run with the widget’s default values. You can also pass in values to widgets.
For example: %run /path/to/notebook $X="10" $Y="1"
Note: This example runs the specified notebook and passes 10 into widget X and 1 into widget Y.
For more details, refer How to use widgets with %run.
Hope this helps. Do let us know if you any further queries.
------------
Please don’t forget to Accept Answer
and Up-Vote
wherever the information provided helps you, this can be beneficial to other community members.