The package looks great!. I wanted to know if there is a simple way to take a text input from the user and use the input to filter or create views on streamlit. Since there are many millions of data points , i am unable to use the slider or dropdown option for this
Hi all,
Has anyone successfully tried to use this input function to get the location of a file and use it to load data?
I’m a entering the location of the file in my system and using pandas to read the csv but I haven’t been able to see the data.
Thanks in advance
Obrigado @thiago! Works like a charm. I appreciate the help.
GM
Update – This works perfect on the localhost. I am able to retrieve any dataframe from my machine and perform EDA. I deployed this to heroku but I am not able to access the files. I encounter a: FileNotFoundError:[[Errno2] File 'bFileName does not exist eda-st.herokuapp.com
Hi, I have been using Streamlit for a while. The text input package looks great. There is an issue I am running into. I have been using a text input in my app to ask the user for word input. The word they write is to get added to an already existing list. Now, once the word is added, and the user wants to input a new word, the previous word is getting removed from the list. Is there a way to make the text inputs from users permanent? Thanks in advance.
Hey maybe a bit late, but I think you can append the variable of the text_input to the list in question.
Let me know if you need an example.
Good Luck!
def text_field(label, columns=None, **input_params):
c1, c2 = st.columns(columns or [1, 4])
# Display field name with some alignment
c1.markdown("##")
c1.markdown(label)
# Sets a default key parameter to avoid duplicate key errors
input_params.setdefault("key", label)
# Forward text input parameters
return c2.text_input("", **input_params)
username = text_field("Questions:-",)
# Notice that you can forward text_input parameters naturally
answer= text_field(("Answer:-"))
I have this code and I want to increase the answer field area like text_area.
I tried it to write answer= st.text_area(text_field(("Answer:-"))) but does not work.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.