Hi all!
I have no formal training but I get scripts working by searching the net and reading.
I am attempting to run a threaded script using
I am trying to use Rich for the table layout and trying to use its "Live" feature to refresh the table but it seems that any data I add to the table is not taken into account.
Has anyone done something like that and how would you go about it? I get that this is not a small request so pointers to doc or articles is also great.
Thanks for any help/advice you can provide.
threads task0 task1
--------------------------------
thread_0 done running
thread_1 running
thread_2 done done
I have no formal training but I get scripts working by searching the net and reading.
I am attempting to run a threaded script using
concurrent.futures.ThreadPoolExecutor
and have each task in each thread populate a "live table". So when thread_0 is running task_0, I will have a collumn "task 0" with the state running in the row "task_0".I am trying to use Rich for the table layout and trying to use its "Live" feature to refresh the table but it seems that any data I add to the table is not taken into account.
Has anyone done something like that and how would you go about it? I get that this is not a small request so pointers to doc or articles is also great.
Thanks for any help/advice you can provide.
threads task0 task1
--------------------------------
thread_0 done running
thread_1 running
thread_2 done done