Module not found ReportThread

Also this is what new code needs to look like if you’re using this to get session_id for extracting headers or whatnot.

-from streamlit.report_thread import get_report_ctx
+fro streamlit.script_run_context import add_script_run_ctx
...
-    session_id = get_report_ctx().session_id
+    session_id = add_script_run_ctx().streamlit_script_run_ctx.session_id
2 Likes