Skip to main content
The Snowflake Streamlit App page element shows a Streamlit in Snowflake app inside a Curator page. The app runs in Snowflake as the viewer who is signed in to Curator, under the role of the portal’s Snowflake connection. The viewer never signs in to Snowflake, and the app’s queries, CURRENT_USER() and row access policies all see that viewer’s own Snowflake user.

Prerequisites

  • An active Snowflake connection, with its security integration set up in Snowflake. Until one exists, the element is disabled in the Add Element pop-up.
  • Every viewer needs a Snowflake user whose login name equals their Curator username and that is granted the connection’s role, as for any Snowflake connection. Viewers who are not signed in see “Sign in to view this app.”
  • The app runs on a container runtime with Streamlit 1.53.0 or later. Apps on a warehouse runtime cannot be embedded.
  • The portal’s address is registered in Snowflake, and the connection’s role has USAGE and EMBED on the app. The Streamlit embedding section of the Snowflake connection shows the statements to run. See Allowing Streamlit apps on pages.
  • The portal is served over https. Snowflake does not embed apps in pages served over plain http.

Adding a Streamlit app to a page

  1. Find the page you’d like to add the app to, or click the ”+ New Page” button.
  2. Select the element you’d like to use, or click the plus (+) icon to add a new blank element.
  3. In the “Add Element” pop-up, click on the Analytic Elements tab at the top and select the Snowflake Streamlit App option.
  4. In the Snowflake Streamlit App Settings section on the left-hand side, fill in the fields:
  1. Click Save.
Each time the page opens, Curator asks Snowflake for a new single-use address for the app, so the app loads fresh for each viewer and each visit.

What viewers can see

Good to know

  • Each viewer may load up to 20 apps per minute.
  • Curator records each app load in its audit log with the viewer, the page, and the app, never the address Snowflake returned.