saikoneru1997 / Azure_DataFactory

0 stars 0 forks source link

How to call one notebook from another by passing parameteres #55

Closed saikoneru1997 closed 7 hours ago

saikoneru1997 commented 7 hours ago

we can use dbutils.notebook.run

result = dbutils.notebook.run("/Users/your_user/DataProcessing", 60, {"input_path": "/data/input.csv"}) print(result) # Prints the output of the called notebook

dbutils.widgets.text("input_path", "") # Creates a widget for the parameter input_path = dbutils.widgets.get("input_path") print(f"Processing file at: {input_path}")