4 ms·
Solara looks like an interesting Python webapp framework. Any differentiation w r t Streamlit ?
by d4rkp4ttern 3y ago
Solara looks like an interesting Python webapp framework. Any differentiation w r t Streamlit ?
- maartenbreddels 3y agoOn https://solara.dev/docs/tutorial/streamlit https://solara.dev/docs/tutorial/streamlit we highlight the main differences: * Solara will not continuously re-execute your script as Streamlit does. * Solara will re-execute components instead, only what needs to. * State in Solara is separate from the UI components, unlike streamlit, where they are strongly linked. * State can be on the application level (global) for simplicity or on the component level (local) for creating reusable components. * Solara should not block the render loop. Long-running functions should be executed in a thread using use_thread.