forked from blackary/st_pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request blackary#29 from mfriedy/dynamic-sidebar
Dynamic sidebar
- Loading branch information
Showing
7 changed files
with
157 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import streamlit as st | ||
|
||
from st_pages import add_page_title | ||
from st_pages import add_page_title, hide_pages | ||
|
||
add_page_title() | ||
|
||
st.write("This is just a sample page!") | ||
|
||
selection = st.radio( | ||
"Test page hiding", | ||
["Show all pages", "Hide pages 1 and 2", "Hide Other apps Section"], | ||
) | ||
|
||
if selection == "Show all pages": | ||
hide_pages([]) | ||
elif selection == "Hide pages 1 and 2": | ||
hide_pages(["Example One", "Example Two"]) | ||
elif selection == "Hide Other apps Section": | ||
hide_pages(["Other apps"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "st-pages" | ||
version = "0.3.5" | ||
version = "0.4.0" | ||
description = "An experimental version of Streamlit Multi-Page Apps" | ||
authors = ["Zachary Blackwood <[email protected]>"] | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters