管理 Streamlit 应用程序¶
This topic describes how to view, rename, and modify properties of a deployed Streamlit in Snowflake app.
重命名 Streamlit 应用程序¶
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- 选择要重命名的 Streamlit 应用程序。
- Select Edit.
- 在左上角选择该应用程序的名称。
- 在文本框中输入新名称。
- 在文本框外部点击以提交变更。
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.
更改查询仓库
您可能希望切换到容量更大的仓库来处理应用程序运行的查询。
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- 选择要更改其仓库的 Streamlit 应用程序。
- 在左上角选择该应用程序的名称。
- 从下拉列表中选择新仓库。
Use the ALTER STREAMLIT command to set the QUERY_WAREHOUSE property:
Update the query_warehouse value in your snowflake.yml file and redeploy:
更改计算池
您可以在创建容器运行时 Streamlit 应用程序后更改其计算池。这对仓库运行时应用程序没有影响。
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- 选择要更改其计算池的 Streamlit 应用程序。
- Select the three-dots button in the upper-right corner, then select App Settings.
- 从下拉列表中选择一个新的计算池。
- Select Save.
Use the ALTER STREAMLIT command to set the COMPUTE_POOL property:
更改暂存区或主文件
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:
列出 Streamlit 应用程序¶
- 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:
列出已部署的 Streamlit 应用程序:
查看应用程序详细信息
- Sign in to Snowsight.
- In the navigation menu, select Projects » Streamlit.
- 选择 Streamlit 应用程序。
应用程序详细信息面板显示应用程序的数据库、架构、仓库和其他属性。
Use the DESCRIBE STREAMLIT command:
Use the describe command:
共享 Streamlit 应用程序¶
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.
- 选择要共享的 Streamlit 应用程序。
- Select Share.
- 首先输入要与之共享应用程序的角色的名称,然后选择该角色。
- Optional: Select Copy to clipboard to copy the app URL.
- Select Done.
在 Streamlit 对象上授予 USAGE 权限:
与以下角色共享应用程序: