Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 08:16 AM
Hi @Ajay-Pandey Thank you for this. Here is some code snippets of what I am working on.
table_list = [ { 'table' : ' table1'}, {'table' : 'table2'}, {'table' : 'table3'}]import concurrent.futures
def run_notebook(table):
dbutils.notebook.run("./Notebook", 0, table)
max_workers = 5
with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
executor.map(run_notebook, table_list)In my notebook that is being called I have a widget to accept the table value. How can I do this if I want to pass in a tuple to my notebook? So something like this?
table_list = [ { 'table' : ' table1', 'attribute1' : 'value1', 'attribute2' : 'value2'}, {'table' : 'table2', 'attribute1' : 'value8', 'attribute2' : 'value19'}, {'table' : 'table3', 'attribute1' : 'value17', 'attribute2' : 'value475'}]How can I have the widget accept a tuple or how can I convert the string value of the widget to a tuple?