Wow, I was wondering how I can bring my idea to real life using Streamlit and boom I found your video for session states....Many thanks for your time and am very grateful to have found your channel
This is the most straightforward yet most understandable and practical way of explaining session states. What a talent!!!! Thank you so much for your time. I subscribed to your channel.
Wow! Well explained and very simple to understand and to start coding. Thank you for the video :). If possible can you please make a video using Streamlit extracting the data from any database with the help of user inputs in this way users can pull the data depending on the date selections. Thank you so much appreciate it :)
great video. One tip to increase your visibility on the platform is to enable content translation. so people from other countries could have access to its content.
Could you explain the "if st.session_state.kind_of_column"? When would this be not set or set? Docs say "Every widget with a key is automatically added to Session State". This sounds like it will not be set on 1st run because handle_click_wo_button will not be called assuming no changes done to the radio button right?
Hey Misra, Just a “semantic” suggestion:-line 15 & line 20-the button labels should be “Show more ROWS” not columns since when you’re passing the “number_of_rows” to head (and the session variable name itself represents that)
I wish to confirm that the problems in this video only occur because of the ordering of the commands right? Assuming we put the radio above the dropdown, there would be no need for callbacks?
Hi there. Thanks for all your effort. The questions that is have is do you know how to save the sesssion state of a radio button or a multi select? I can't get it to work. All other session states are working just fine....
Hi ! does the on-change work using forms? I'm trying to do a nested select box in a form and I couldn't find out how to make it work, hope you have a solution. Thanks
Hey Mısra, I have three multiselect in sidebar. I want to revise multi select data according to each other. How do ı make. Can you help me?. thanks in advance
How do we set callbacks when using third-party plugins like streamlit_plotly_events? When I click on the plot it refreshes the page without updating the variable state. :(
Hello, do u know how I can handle serveral dataloader on the same site preventing from uploading each, if only one changes. Not being sure if the on change would do the trick. Anyway confused if a dataloader hilds already the data or only the path and meta data and must be later read like pandas.read_csv(st.dataloader(...)) to use it. My RAM looked a bit like st.dataloader already loads to RAM
What if you wanted data that after 6 years, the data from year 1 isnt necessary. I am thinking here of where there are calculations in your data and they are only needed on a rolling 5 years period?
Is it possible say there is a search box where a user can enter a search term, then the data frame will be filtered to show only the rows that contains that search term? Could you please do a video on that?
Awesome tutorial. Thank you. Could create a tutorial on how to build an invoice form in which one can multiple items dynamically. For example click a button to add a new line item
@@misraturp thank you. Im trying to convert an excel rent calculator to a streamlit web app. Depending on the number of household members, require ability to add new rows. Ideally fields are tenantno, income type and income amount.
I am executing below code however the function that should be called after the button is clicked its called even before the button is clicked with st.form(key='form1'):
table_name1 = st.text_input("enter table name to extract data from ","") but1 = st.form_submit_button(label='Submit to add fields and condition', on_click=shw_form2()) Could you please let me know what the issue is, Thanks!
Hi Misha, Have a general question on multiselect option in streamlit. I basically have a multiselect button to which I am passing a list of values. This multiselect is within a form as I only want it to save once the user click on the submit button. Unfortunately when I click on the submit button, all the items selected from.the list are not getting saved. I also tried saving it in session_state field. Can you please help.here I to use multiselect within a form and save the selected items. Thanks!!
Hi Misra, thanks for your explanations. I am trying to apply your code in my Streamlit project without success. Briefly, I am preparing a questionnaire where the user goes through different questions and can respond based on a drop down list. The goal is that the user cannot reedit the answers and the code force him/her to resolve the next question and so on. However, as the project is now, the user can reedit the questions and when the user moves to the next one and answer it, the code starts from beginning losing all the info generated. Could you please help?
Hey Antonio, maybe starting with a simpler app to understanding the logic of the session states could help? This sounds like a bit of a complicated project.
I need some help i can't put 2 pieces of code together. everytime i do they open in 2 different tabs in chrome. how can i make them open in 1 tab? i have the codes i can send them please its urgent
One of my buddies spent like 2 weeks to grasp these concepts and you helped me to do it in 15min!
Thank you a lot!
Wow, I was wondering how I can bring my idea to real life using Streamlit and boom I found your video for session states....Many thanks for your time and am very grateful to have found your channel
That's awesome Curtis! Thank you for your nice words and of course, you are welcome :)
Boom
This is the most straightforward yet most understandable and practical way of explaining session states. What a talent!!!! Thank you so much for your time. I subscribed to your channel.
what a coincidence, i'm in the middle of creating a streamlit webapp for work, this really helps. thank you ms. , and thank you youtube algorithm
Awesome coincidence! Good luck with the project!
This just made my day. Solved a problem I've been stuck on all day. Thank you!
great demo, very easy to follow. will try this feature soon. thanks!
Thank you! Have fun with Streamlit.
forever searching for this!! thank you
best video so far about session states in Streamlit. Thanks!
Thank you Mohamed!
Wow! Well explained and very simple to understand and to start coding. Thank you for the video :). If possible can you please make a video using Streamlit extracting the data from any database with the help of user inputs in this way users can pull the data depending on the date selections. Thank you so much appreciate it :)
Thank you! I'll note that down for future video ideas. :)
@@misraturp Thank you :). You’re awesome 🤩
great video. One tip to increase your visibility on the platform is to enable content translation. so people from other countries could have access to its content.
Thank you . I am creating a web app with streamlit and this is exactly what I need !!
That's great to hear!
Could you explain the "if st.session_state.kind_of_column"? When would this be not set or set? Docs say "Every widget with a key is automatically added to Session State". This sounds like it will not be set on 1st run because handle_click_wo_button will not be called assuming no changes done to the radio button right?
Hey Misra,
Just a “semantic” suggestion:-line 15 & line 20-the button labels should be “Show more ROWS” not columns
since when you’re passing the “number_of_rows” to head (and the session variable name itself represents that)
Thanks for the correction! I missed it apparently. :)
Thank you for sharing this video! Very useful tips!
You are so welcome!
Simply the best. I use your tutorials all the time :)
Great to hear Louis! Thank you.
Fantastically done video thank you
thanks for your beautiful explanations. waiting your new videos.
Did you post the code you used here for people to download? Where is it?
I wish to confirm that the problems in this video only occur because of the ordering of the commands right? Assuming we put the radio above the dropdown, there would be no need for callbacks?
Very helpful. Thanks!
Hi there. Thanks for all your effort. The questions that is have is do you know how to save the sesssion state of a radio button or a multi select? I can't get it to work. All other session states are working just fine....
Hi, thanks for your awesome videos, could you please help with the print/ save as pdf function for a desired output or page in streamlit
Hi ! does the on-change work using forms? I'm trying to do a nested select box in a form and I couldn't find out how to make it work, hope you have a solution. Thanks
hey misra
is it possible to use this for sliders? i'm thinking how this can be used as a workaround to programatically change the value of a slider.
Hey Mısra, I have three multiselect in sidebar. I want to revise multi select data according to each other. How do ı make. Can you help me?. thanks in advance
How do we set callbacks when using third-party plugins like streamlit_plotly_events? When I click on the plot it refreshes the page without updating the variable state. :(
Is there a way to make the table editable? Could the user change values in the table?
Çok sagol Mısra, cok yardımcı oldu... Kolaylıklar..
Sevindim. :) Kolay gelsin!
Hello, do u know how I can handle serveral dataloader on the same site preventing from uploading each, if only one changes. Not being sure if the on change would do the trick. Anyway confused if a dataloader hilds already the data or only the path and meta data and must be later read like pandas.read_csv(st.dataloader(...)) to use it. My RAM looked a bit like st.dataloader already loads to RAM
What if you wanted data that after 6 years, the data from year 1 isnt necessary. I am thinking here of where there are calculations in your data and they are only needed on a rolling 5 years period?
Is it possible say there is a search box where a user can enter a search term, then the data frame will be filtered to show only the rows that contains that search term? Could you please do a video on that?
Sure that's possible Max. The display will happen through Streamlit but the filtering should happen on Pandas.
@@misraturp thank you.
This is very helpful, thank you!
You are very welcome :)
Awesome tutorial. Thank you. Could create a tutorial on how to build an invoice form in which one can multiple items dynamically. For example click a button to add a new line item
Thanks! I'll look into it.
@@misraturp thank you. Im trying to convert an excel rent calculator to a streamlit web app. Depending on the number of household members, require ability to add new rows. Ideally fields are tenantno, income type and income amount.
I am executing below code however the function that should be called after the button is clicked its called even before the button is clicked
with st.form(key='form1'):
table_name1 = st.text_input("enter table name to extract data from ","")
but1 = st.form_submit_button(label='Submit to add fields and condition', on_click=shw_form2())
Could you please let me know what the issue is, Thanks!
Hey Sandeep, do you mean the text_input is called before the button click?
Hi Misha,
Have a general question on multiselect option in streamlit. I basically have a multiselect button to which I am passing a list of values. This multiselect is within a form as I only want it to save once the user click on the submit button.
Unfortunately when I click on the submit button, all the items selected from.the list are not getting saved. I also tried saving it in session_state field.
Can you please help.here I to use multiselect within a form and save the selected items.
Thanks!!
Hey Sandeep, would be hard for me to see what's going wrong without seeing the code unfortunately.
Hi Misra, thanks for your explanations. I am trying to apply your code in my Streamlit project without success. Briefly, I am preparing a questionnaire where the user goes through different questions and can respond based on a drop down list. The goal is that the user cannot reedit the answers and the code force him/her to resolve the next question and so on. However, as the project is now, the user can reedit the questions and when the user moves to the next one and answer it, the code starts from beginning losing all the info generated. Could you please help?
Hey Antonio, maybe starting with a simpler app to understanding the logic of the session states could help? This sounds like a bit of a complicated project.
Hello Misra, I followed the tutorial carefully, but I get the error, KeyError, when I select a column and run the code.
For which line are you getting this error exactly?
I need some help i can't put 2 pieces of code together. everytime i do they open in 2 different tabs in chrome. how can i make them open in 1 tab? i have the codes i can send them please its urgent
Which command are you using to run the app?
could you please make a view how to integrate Dropbox refresh access token to steamlit?
love your videos, but now streamlit has updated its documentations and I can nt find anything anymore :( anyway, thanks for the video!!!!!!
Knowledge and beauty
thanks!
that was great
Glad you liked it!
Very useful, thank you
You're welcome. :)
You are awesome
Thank you! :)
Hi ,
I am trying to implement user timeout in streamlit but unable to do so. Anyone who has figured it out????
what IDE are you using?
I am using the Sublime text editor.
Thank you! :)
You are very welcome. :)
Thanks!!))
No problem!
can you send email using streamlit without using less secure option in gmail.
Never tried this honestly.
🇧🇷🖥️
sorry ... stil to small ... but great tutorial
I'm working on it :D Can't fix the old videos but the latest ones I try to make it as big as possible.
👉 Download the Streamlit project template to get going in no time - misraturp.gumroad.com/l/stemp
Thanks :))
No problem!