Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharedWorker mode for multiple embeddings in a single page #631

Closed
whitphx opened this issue Oct 5, 2023 · 2 comments · Fixed by #1193
Closed

SharedWorker mode for multiple embeddings in a single page #631

whitphx opened this issue Oct 5, 2023 · 2 comments · Fixed by #1193

Comments

@whitphx
Copy link
Owner

whitphx commented Oct 5, 2023

No description provided.

@whitphx whitphx changed the title ShareWorker mode for multiple embeddings in a single page SharedWorker mode for multiple embeddings in a single page Oct 6, 2023
@whitphx
Copy link
Owner Author

whitphx commented Oct 11, 2023

Currently it's impossible because multiple Streamlit's Runtime instance can't exists in a single Python runtime.
https://github.com/streamlit/streamlit/blob/61f61ad2daeab44c7d98564a57724c20f1f8a48f/lib/streamlit/runtime/runtime.py#L174-L175

@whitphx
Copy link
Owner Author

whitphx commented Nov 22, 2024

Customize the forked Streamlit so that it manages the Runtime instance as ContextVars instead of a singleton instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant