-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show example of configuring and consuming multiple data sources in .streamlit/secrets.toml #877
Labels
Comments
For example # .streamlit/secrets.toml
[connections.name_one]
type = "gsheets"
spreadsheet = "https://docs.google.com/spreadsheets/d/xxxxxxx/edit#gid=0"
[connections.name_two]
type = "gsheets"
spreadsheet = "https://docs.google.com/spreadsheets/d/xxxxxxx/edit#gid=0" # streamlit_app.py
import streamlit as st
from streamlit_gsheets import GSheetsConnection
# Create a connection object for the first spreadsheet
conn_one = st.connection("name_one", type=GSheetsConnection)
df_one = conn_one.read()
# Create a connection object for the second spreadsheet
conn_two = st.connection("name_two", type=GSheetsConnection)
df_two = conn_two.read() |
Thanks for the recommendation! We are continuing to update and add to our connections docs, so I'll keep this open for tracking. 😄 |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to doc page in question (if any):
https://github.com/streamlit/docs/blob/main/content/kb/tutorials/databases/public-gsheet.md
Name of the Streamlit feature whose docs need improvement:
Any Datasource, Google Sheets in my case.
What you think the docs should say:
They should describe how to configure multiple data sources and consume them simultaneously.
The text was updated successfully, but these errors were encountered: