Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 07:33 AM
@carlos_tasayco There are two methods on how you can pass a variable to the other notebooks as input.
- Using Widgets
- using collect method like below.
# In notebook1
result = spark.sql("SELECT value FROM table").collect()[0][0]
dbutils.notebook.exit(result)
# In notebook2
value = dbutils.notebook.run("notebook1", timeout_seconds=60)
Let me know for anything else.