Module not found ReportThread

Looks like the syntax changed again. If you are running into a ModuleNotFoundError :

ModuleNotFoundError: No module named 'streamlit.script_run_context'

The new syntax is the following:

-from streamlit.script_run_context import add_script_run_ctx
+from streamlit.scriptrunner import add_script_run_ctx
2 Likes