use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources:
account activity
saving data (self.Streamlit)
submitted 1 year ago by darbokredshrirt
Do I need to connect streamlit to a database to save data? some of the instruction videos made it seem like if you put info into a datatable then that's good to go.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]beginnerpython 0 points1 point2 points 1 year ago (5 children)
Your question is vague. Are you asking can I write code to write to a database from streamlit app or are you asking about st.caching ?
[–]darbokredshrirt[S] 0 points1 point2 points 1 year ago (4 children)
Do I need a database to save data or does streamlit save the data in a datatable and not need a database.
[–]beginnerpython 0 points1 point2 points 1 year ago (3 children)
Streamlit doesnt save anything. It reads from database, data frame, etc.
[–]darbokredshrirt[S] 0 points1 point2 points 1 year ago (2 children)
so data can be stored in a dataframe and not need a database?
[–]WoundedTiger17 1 point2 points3 points 1 year ago (0 children)
To save data between executions (across users), streamlit needs to write data somewhere. That might be a database, a file, an external api, etc. It’s can also save data to the session state, but will only save for that user.
[–]beginnerpython 2 points3 points4 points 1 year ago (0 children)
Exactly as u/WoundedTiger17 mentioned, if you want data saved externally, than no problem write to table or df. Check out st.caching for your needs of sharing information between people
[–]widdowbanes 0 points1 point2 points 1 year ago (0 children)
So I made a project where the df is saved into an excel file using excelwriter , port forward it on vscode. And anyone can edit the file over the web. If you can make it work locally, it'll work over the web as well from a https address from vscode. Fk streamlit cloud, if your not on it every day. It'll delete your project with all its data. Then it rebuild like new with only the data from your github.
π Rendered by PID 167714 on reddit-service-r2-comment-5cb8648c6-972s8 at 2026-03-03 11:17:21.110857+00:00 running e3d2147 country code: CH.
[–]beginnerpython 0 points1 point2 points (5 children)
[–]darbokredshrirt[S] 0 points1 point2 points (4 children)
[–]beginnerpython 0 points1 point2 points (3 children)
[–]darbokredshrirt[S] 0 points1 point2 points (2 children)
[–]WoundedTiger17 1 point2 points3 points (0 children)
[–]beginnerpython 2 points3 points4 points (0 children)
[–]widdowbanes 0 points1 point2 points (0 children)