The api of streamlit.script_run_context api has changed
See original GitHub issueat streamlit‘s latest version,it use scriptrunner package:
from streamlit.scriptrunner import get_script_run_ctx
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Streamlit.script_run_context() gone with 1.8?
With latest version 1.8 it changed again: ... I have the same problem, it breaks this code here: ... But version 1.12 changed...
Read more >Improve "missing ReportContext" threading error #1326 - GitHub
And I found that they have changed the module name and function name, ... Streamlit API and therefore unsupported and subject to change....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

it’s because Streamlit keep changing this method name over and over and over, people want to keep installing the latest version of Streamlit and hence why all these community packages keep breaking and why i wait so long until i push the fix, as there are now 4 branch conditions required in the code to correctly account for all the variations in the method name to get the session context.
#v1.7.0 from streamlit.script_run_context import get_script_run_ctx to
#v1.8.0 from streamlit.scriptrunner.script_run_context import get_script_run_ctx
New version 1.0.13 release now supports Streamlit >=1.9, until Streamlit decide to change more shit and break Hydralit again.