Manage your Streamlit app¶
This topic describes how to view, rename, and modify properties of a deployed Streamlit in Snowflake app.
Rename a Streamlit app¶
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- Select the Streamlit app you want to rename.
- Select Edit.
- Select the name of the app in the upper-left corner.
- Enter the new name in the text box.
- Click outside the text box to commit the change.
Use the RENAME TO clause of the ALTER STREAMLIT command:
Snowflake CLI does not support renaming a deployed app directly. Use SQL or Snowsight instead.
Change the query warehouse¶
You might want to switch to a warehouse with more capacity to handle the queries run by your app.
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- Select the Streamlit app whose warehouse you want to change.
- Select the name of the app in the upper-left corner.
- Select the new warehouse from the dropdown list.
Use the ALTER STREAMLIT command to set the QUERY_WAREHOUSE property:
Update the query_warehouse value in your snowflake.yml file and redeploy:
Change the compute pool¶
You can change the compute pool for a container-runtime Streamlit app after it’s created. This has no effect on warehouse-runtime apps.
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- Select the Streamlit app whose compute pool you want to change.
- Select the three-dots button in the upper-right corner, then select App Settings.
- Select a new compute pool from the dropdown.
- Select Save.
Use the ALTER STREAMLIT command to set the COMPUTE_POOL property:
Change the stage or main file¶
Changing the stage or main file is not available from Snowsight. Use SQL instead.
Update the main_file or artifact paths in your snowflake.yml and redeploy:
List Streamlit apps¶
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
Snowsight displays all Streamlit apps available to your current role.
Use the SHOW STREAMLITS command:
List deployed Streamlit apps:
View app details¶
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- Select the Streamlit app.
The app details panel shows the app’s database, schema, warehouse, and other properties.
Use the DESCRIBE STREAMLIT command:
Use the describe command:
Share a Streamlit app¶
You can share your Streamlit app with other Snowflake users by granting USAGE privilege to a role. For more information about sharing options, see Sharing Streamlit in Snowflake apps.
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- Select the Streamlit app you want to share.
- Select Share.
- Begin typing the name of the role you want to share your app with, and then select it.
- Optional: Select Copy to clipboard to copy the app URL.
- Select Done.
Grant USAGE privilege on the Streamlit object:
Share the app with a role: