wenn using threading I understood to run a thread inside a streamlit context I need to
add the Thread to a context.
ala:
t = Thread(target=prepare_pd_threaded, args=(x, pd_dict))
add_script_run_ctx(t)
Recently the function changed from add_report_ctx() to add_script_run_ctx().
With latest version 1.8 it changed again:
ModuleNotFoundError: No module named ‘streamlit.script_run_context’