I’m currently reading the streamlit documentation trying to find a feature that allow me create editable data tables “a columns with editable cells like excel”
if anyone could give me some help, will be appreciated
This looks really awesome, but very complex…
By any chance is there another way to interact dynamically with dataframes ? Appending rows in existing dataframe or changing dataframes values on the fly ?
@blob123 I “think” (but @ash2shukla is the expert in this so I’ll let him chime in…) you can use a combination of Bokeh datatable + streamlit-bokeh-events for editable tables, but that may be a bit more complex to use too…
I know the Streamlit team is thinking about it but there’s no immediate timeframe for its development so in the meantime if you need an editable datatable, your best bet is writing a component for it
Have you looked at Streamlit’s add_rows functionality? You’ll see code examples for adding data to a dataframe and showing the result in a plot in real time.
For this one you may be better off overwriting the dataframe variable for now.
But this is hard to implement in an user interactive app, because a bit far from a full editable dataframe in an “Excel” fashion, to record user’s inputs…
I try to create an app with an optimization function, variables and constraints: I don’t know how to input the various parameters of my bunch of constraints. That’s why I was also thinking of an editable table.
Maybe instead of this editable table, what could be the best way to populate e.g. a 4x4 table for the app user ?
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.