STREAMLIT TRICKS - Web App RERUNS on every WIDGET CLICKS ? Here's WHAT-TO-DO |SessionState| PYTHON

preview_player
Показать описание
If you have been using Streamlit to build your Data Science or Machine learning Web Application, probably you are already aware, that whenever any interactive change is invoked through applications’s widgets, Streamlit web application reruns from the very top to the bottom of your python script. In this video, I’ll try to highlight those possible workarounds.

Segments -
00:00 - Intro
00:59 - Default Behaviour of Streamlit App
02:51 - Work Around - 1 (Check Box)
03:52 - Limitation of Work Around - 1
04:19 - Work Around -2 (SessionState + Button)
06:10 - Wrapping Up

🔥 By becoming a patron, you'll get access to exclusive content, codes, or videos beforehand, one-to-one web app development / relevant discussion, live-chat with me on specific videos and other perks. ( FYI : Basic Tier is 50% cheaper than ChatGPT/monthly with benefits which an AI can't help with 😉 ):

#streamlit #python #sessionstate #pythonprogramming #pythontutorial

Feel free to drop your comments and ideas in the comment section.
Ta-Da!
Рекомендации по теме
Комментарии
Автор

Blog Post and codes related to this video -

Avra_b
Автор

This was much more clear than the Streamlit examples. Great video!

prskis
Автор

I spent more than 16 hours with issues related to this. If only I had found you sooner! <3 Life saver!

notmanas
Автор

Thank you so much, Avra, I found your Medium article after spending a few hours working on this, and it has worked perfectly!

pepmartimascaro
Автор

Superb man....
Seriously was dying to solve this issue.
I got to know.

But after this 6 mins video its so crystal clear.
First should have come to YT instead of Google and docs

You made it simple and clean.
Thanks a lot for all these videos.

One day they will scale to 1 million views.
As all of these are so valuable and lifesaver

rbk.technology
Автор

Excellent, without a doubt, this channel is becoming the best niche to learn streamlit. You are doing a good job. Greetings

jorge
Автор

Great video. Thank you very much. I was stuck figuring this out.

saxegothaea_conspicua
Автор

Thank you so much man !! Was really stuck with this and couldn't find a solution anywhere else. Great explanation !!

MaximusGamingGG
Автор

dont know how this works
but it works !!!
thanks!

PiyushSingh-efsh
Автор

Thaaanks a lot for uploading such amazing content on Streamlit sir !!

subinnair
Автор

Amazing! I searched for solution for hours. Thank god I came acorss your medium article and this video. Simple and easy way to deal with the session problem. Thank you so much dude <3 keep up the good work.

theanxiousdude
Автор

Bro I am surprised why only 190 likes on this thanks a ton for this solution

learnapplybuild
Автор

Thanks for an excellent tutorial, however I am still struggling with how to store pyplots in session_state. As whenever i update any widget, my rendered image reloads again, even when its the same image. I have tried storing pyplot instance in sessions but its still not working, any idea how do I avoid that?

beyblade
Автор

this video was clreares than others, thanks sir, appreciate it, also i learned streamlit on your channel, thanks x2

yonnialvarez
Автор

Thank you very much, your video helped me a lot. Excellent explanation thanks!

genesistorrico
Автор

Amazing video, it helped me so much! Thanks!

arturgomes
Автор

Thank you for your help! Wouldn´t complete the job without your help !

danielblechinger
Автор

How to make column header dynamic with colour coding, is it already inbuilt feature in ST.?

maivish
Автор

I have a table and for that table i have added filters with buttons.
When the button is clicked the whole app is rerunning.
I have tried session.state also. Please help me on this

bhanu.s
Автор

Very informative video 😁 I am currently working on with streamlit, and I can't wait to implement these infos.. Thanks 😁 I also would like to see if you can make buttons that after you click, it can call other python scripts from other page into the current page.. Thank you in advance 😁

otherside_ofqila