Connect from Cube Cloud
Navigate to the Integrations page, click Connect to Cube, and choose Streamlit to get detailed instructions.Connect from Cube Core
You can connect a Cube deployment to Streamlit using the SQL API. In Cube Core, the SQL API is disabled by default. Enable it and configure the credentials to connect to Streamlit.Connecting from Streamlit
Streamlit connects to Cube as to a Postgres database.Creating a connection
Make sure to install thestreamlit, sqlalchemy and pandas modules.
sqlalchemy.create_engine to connect to Cube’s SQL API.
Querying data
Your cubes will be exposed as tables, where both your measures and dimensions are columns. You can write SQL in Streamlit that will be executed in Cube. Learn more about Cube SQL syntax on the reference page.streamlit.dataframe(df).