Skip to content

Commit 71c934f

Browse files
authoredJan 30, 2024
Fix embedded apps for prerelease 1.31.0 (#947)
* Remove second config file in api examples source * Remove testing line from write_stream app * Add requirements for custom navigation app example
1 parent 5c680e0 commit 71c934f

File tree

7 files changed

+9
-5
lines changed

7 files changed

+9
-5
lines changed
 

‎python/api-examples-source/text.write_stream.py

-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,3 @@ def stream_data():
2727

2828
if st.button("Stream data"):
2929
st.write_stream(stream_data)
30-
st.title("Hi inside the button")
31-
32-
st.title("Hi outside the button")

‎python/api-examples-source/tutorials/custom-navigation/.streamlit/config.toml

-2
This file was deleted.

‎python/api-examples-source/tutorials/custom-navigation/app.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import streamlit as st
22
from menu import menu
33

4+
st.set_option("client.showSidebarNavigation", False)
5+
46
if "role" in st.session_state:
57
st.session_state._role = st.session_state.role
68
else:

‎python/api-examples-source/tutorials/custom-navigation/pages/admin.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import streamlit as st
22
from menu import menu
33

4+
st.set_option("client.showSidebarNavigation", False)
5+
46
if "role" not in st.session_state or st.session_state.role is None:
57
st.switch_page("app.py")
68
menu()

‎python/api-examples-source/tutorials/custom-navigation/pages/super-admin.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import streamlit as st
22
from menu import menu
33

4+
st.set_option("client.showSidebarNavigation", False)
5+
46
if "role" not in st.session_state or st.session_state.role is None:
57
st.switch_page("app.py")
68
menu()

‎python/api-examples-source/tutorials/custom-navigation/pages/user.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import streamlit as st
22
from menu import menu
33

4+
st.set_option("client.showSidebarNavigation", False)
5+
46
if "role" not in st.session_state or st.session_state.role is None:
57
st.switch_page("app.py")
68
menu()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
streamlit-nightly

0 commit comments

Comments
 (0)
Please sign in to comment.