Skip to content

Commit 211f313

Browse files
committed
Rewrite history
1 parent 9fc750e commit 211f313

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

multiple-pages/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Multi-page apps
2+
3+
1. Create an app with the code from streamlit_app.py
4+
2. Update the page list at the bottom of the streamlit_app.py file
5+
3. Test locally to make sure you can see all the pages in the sidebar
6+
7+
```sh
8+
streamlit run streamlit_app.py
9+
```
10+
11+
4. Create the app in SiS, either through the web UI, or through the snowcli
12+
13+
```sh
14+
snow streamlit create --file streamlit_app.py GREAT_NAME_FOR_MY_STREAMLIT
15+
snow streamlit deploy --file streamlit_app.py GREAT_NAME_FOR_MY_STREAMLIT
16+
```
17+
18+
5. Upload all of the other pages to the stage of your app
19+
20+
```sh
21+
snow stage put secondary_page.py GREAT_NAME_FOR_MY_STREAMLIT_STAGE
22+
```
23+
24+
6. Profit!

0 commit comments

Comments
 (0)