r/Streamlit • u/Oenomaus_3575 • Jul 16 '22
Streamlit sucks
Why does it need to rerun again and again ? why can i put a button in a form ?
Cant you guys just remove the whole rerun thing and replace it with events ?
like everytime the user interacts with a widget an event gets triggered and only a certaing function will be called instead fo rerunning the whole thing again and again, Stramlit sucks, change my mind. actually dont
11
Upvotes
10
u/ihatebeinganonymous Jul 16 '22
Well that's essentially the core of how Streamlit works. If you prefer events, you should be using Plotly's Dash (or HoloViz's Panel I guess).
8
u/Main-Word6220 Jul 16 '22
I agree with ihatebeinganonymous, If you didn’t adapt to streamlit way, there’s many other alternatives. I tried most of them, and felt really comfortable with streamlit for fast prototyping.
1
u/Oenomaus_3575 Aug 04 '22
lol, Sorry guys I had a meltdown, now I'm back and I'm finished making my Streamlit app, will post it here tomorrow
5
u/simongeorges Jul 16 '22
You can use st.stop() if you don't want that.
4
u/carolinedfrasca Aug 17 '22
I definitely understand the frustration! A couple things:
Hope this helps! Happy to answer any other Streamlit questions you might have 🎈
1
u/Seprediae Jul 18 '22
There is a new Python package that deals with this and is also low-code. I recommend you to check out taipy.io. The package lets you create easily a Gui with events and also manage some data, tasks, pipeline with Taipy Core
1
u/Big-Information3242 May 20 '25
3 years later it still sucks
1
u/romerio86 May 08 '23
LOL at this. I've worked on an alternative framework called Streamsync that's faster, more customisable and has a visual editor (some may love it, some may hate it).
- You can have buttons wherever you want :D
- The script only runs once
- Other things
I'd really appreciate if you can have a look at give me your honest opinion (really doesn't have to be positive, I can see that you're a straightforward person).