Hacker News new | ask | show | jobs
by d4rkp4ttern 956 days ago
Solara looks like an interesting Python webapp framework. Any differentiation w r t Streamlit ?
1 comments

On 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.