You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/deploy/_index.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,13 @@ Get all the information you need to deploy your app and share it with your users
19
19
icon="cloud"
20
20
bold="Streamlit Community Cloud."
21
21
href="/deploy/streamlit-community-cloud"
22
-
>Deploy your app on our free platform and join a community of developers who share their apps around the world.</InlineCallout>
22
+
>Deploy your app on our free platform and join a community of developers who share their apps around the world. This is a great place for your non-commerical, personal, and educational apps.</InlineCallout>
Host your apps alongside your data in a single, global platform. Snowflake provides industry-leading features that ensure the highest levels of security for your account, users, data, and apps. If you're looking for an enterprise hosting solution, try Snowflake!
9
+
10
+
<TileContainer>
11
+
<Tile
12
+
icon="rocket_launch"
13
+
title="Streamlit in Snowflake Quickstart"
14
+
text="Create a free trial account and deploy an app with Streamlit in Snowflake."
There are three ways to host Streamlit apps in Snowflake.
35
+
36
+
<InlineCalloutContainer>
37
+
<InlineCallout
38
+
color="lightBlue-70"
39
+
icon="bolt"
40
+
bold="Streamlit in Snowflake."
41
+
href=""
42
+
>Run your Streamlit app as a native object in Snowflake. Enjoy an in-browser editor and minimal work to configure your environment. Share your app with other users in your Snowflake account through role-based access control. This is a great way to deploy apps internally for your business. Check out Snowflake docs!</InlineCallout>
>Package your app with data and share it with other Snowflake accounts. This is a great way to share apps and their underlying data with other organizations who use Snowflake so they can run it in their own account. Check out Snowflake docs!</InlineCallout>
>Deploy your app in a container that's optimized to run in Snowflake. This is the most flexible option where you can use any library. Share your app publicly or privately. Check out Snowflake docs!</InlineCallout>
55
+
</InlineCalloutContainer>
56
+
57
+
<Note>
58
+
59
+
Using Snowpark Container Services to deploy a Streamlit app requires a compute pool, which is not available in a trial account at this time.
This page only contains the `st.connections.SnowflakeConnection` class. For a deeper dive into creating and managing data connections within Streamlit apps, read[Connecting to data](/develop/concepts/connections/connecting-to-data).
8
+
This page only contains the `st.connections.SnowflakeConnection` class. For a deeper dive into creating and managing data connections within Streamlit apps, see [Connect Streamlit to Snowflake](/develop/tutorials/databases/snowflake) and[Connecting to data](/develop/concepts/connections/connecting-to-data).
Internal note: This section is deep-linked from the library in 1.28.1 via /st.connections.snowflakeconnection-configuration through a redirect.
18
-
Maintain the redirect if moved or modified.
19
-
**/}
20
-
21
-
`st.connection("snowflake")` can be configured using [Streamlit secrets](/develop/concepts/connections/secrets-management) or keyword args just like any other connection. It can also use existing Snowflake connection configuration when available.
22
-
23
-
Note that [snowflake-snowpark-python](https://pypi.org/project/snowflake-snowpark-python/) must be installed to use this connection.
24
-
25
-
#### Using Streamlit secrets
26
-
27
-
For example, if your Snowflake account supports SSO, you can set up a quick local connection for development using [browser-based SSO](https://docs.snowflake.com/en/user-guide/admin-security-fed-auth-use#how-browser-based-sso-works) and `secrets.toml` as follows:
28
-
29
-
```toml
30
-
# .streamlit/secrets.toml
31
-
32
-
[connections.snowflake]
33
-
account = "<ACCOUNT ID>"
34
-
user = "<USERNAME>"
35
-
authenticator = "EXTERNALBROWSER"
36
-
```
37
-
38
-
Learn more about [account indentifier here](https://docs.snowflake.com/en/user-guide/admin-account-identifier). You could also specify the full configuration and credentials in your secrets file, as in the [example here](/develop/tutorials/databases/snowflake#add-connection-parameters-to-your-local-app-secrets).
39
-
40
-
#### Using existing Snowflake configuration
41
-
42
-
Snowflake's python driver also supports a [connection configuration file](https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-example#connecting-using-the-connections-toml-file), which is well integrated with Streamlit `SnowflakeConnection`. If you already have one or more connections configured, all you need to do is pass Streamlit the name of the connection to use. This can be done in several ways:
43
-
44
-
- Set `connection_name` in your app code, such as `st.connnection("<name>", type="snowflake")`.
45
-
- Set `connection_name = "<name>"` in the `[connections.snowflake]` section of your Streamlit secrets.
46
-
- Set the environment variable `SNOWFLAKE_DEFAULT_CONNECTION_NAME=<name>`.
47
-
-[Set a default connection](https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-example#setting-a-default-connection) in your Snowflake configuration.
48
-
49
-
When available in [Streamlit in Snowflake](https://docs.snowflake.com/en/developer-guide/streamlit/about-streamlit), `st.connection("snowflake")` will connect automatically using the [app owner role](https://docs.snowflake.com/en/developer-guide/streamlit/owners-rights) and does not require any configuration.
50
-
51
-
Learn more about setting up connections in the [Connecting Streamlit to Snowflake tutorial](/develop/tutorials/databases/snowflake) and [Connecting to data](/develop/concepts/connections/connecting-to-data).
This is an experimental feature. Experimental features and their APIs may change or be removed at any time. To learn more, click [here](/develop/quick-reference/prerelease#experimental-features).
9
-
10
-
</Important>
11
-
12
6
<Tip>
13
7
14
8
This page only contains the `st.connections.SnowparkConnection` class. For a deeper dive into creating and managing data connections within Streamlit apps, read [Connecting to data](/develop/concepts/connections/connecting-to-data).
As described above, some cloud databases use extra `**kwargs` to specify credentials. These can be passed via secrets using the `create_engine_kwargs` section:
Copy file name to clipboardexpand all lines: content/develop/tutorials/databases/public-gsheet.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This tutorial requires `streamlit>=1.28` and `st-gsheets-connection` in your Pyt
17
17
18
18
## Create a Google Sheet and turn on link sharing
19
19
20
-
If you already have a Sheet that you want to access, feel free to[skip to the next step](#add-the-sheets-url-to-your-local-app-secrets). See Google's documentation on how to [share spreadsheets](https://support.google.com/docs/answer/9331169?hl=en#6.1) for more information.
20
+
If you already have a Sheet that you want to access, you can[skip to the next step](#add-the-sheets-url-to-your-local-app-secrets). See Google's documentation on how to [share spreadsheets](https://support.google.com/docs/answer/9331169?hl=en#6.1) for more information.
21
21
22
22
Create a spreadsheet with this example data and create a share link. The link should have "Anyone with the link" set as a "Viewer."
0 commit comments