New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Critical bug: Sidebar button display in page navigation #8589
Comments
Hey @juhonkang , and thank you for opening this issue. Unfortunately, I couldn't reproduce this issue on my local machine. Does this issue still exist on your local / deployed app? @kmcgrady This could be something similar to that Heisenbug you faced once. |
Yes, do you have anydesk? Anytime you click the button on the side bar when
the time.sleep(5) is running => all the new page will be restart and rerun
through all and you need to wait another 5 seconds.
…On Thu, May 2, 2024 at 10:53 PM Karen Javadyan ***@***.***> wrote:
Hey @juhonkang <https://github.com/juhonkang> , unfortunately, I couldn't
reproduce this issue on my local machine. Does this issue still exist on
your local / deployed app?
—
Reply to this email directly, view it on GitHub
<#8589 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQAK5QGYUZ774FHZC7QGERTZAJORPAVCNFSM6AAAAABG7NV25GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQHA3TCMBYGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@kajarenc Hi, do you have good news for me :) |
Hey, @juhonkang! We discussed this issue with @kmcgrady. I don't remember the details, but he probably has a more detailed answer. In the meantime, a small question: Does the problem persist if you set |
Hey @juhonkang Thanks for reaching. We considered this to be expected because we ensure the sidebar remains visible between reruns until we confirm for sure the sidebar should disappear. Otherwise, pages will have the sidebar flicker. If you intend to keep the sidebar visible, a workaround could be to utilize We are actively working on better navigation of mulipage apps in the next release or so that might provide better options associated with your use case as well. I can follow up with this later as well. |
@kmcgrady Sure, let me try it! |
@kmcgrady All others in the sidebar will disappear, except the button of next page on it. |
Hey @juhonkang I'm not sure if I understand the comment. Are you saying that st.empty() will remove all elements but the omg page button? |
@kmcgrady Yes, all other buttons will be empty with For example, the button to change the page is "omg" Here in my example is clicked to switch pages and it will appear on the next page and be clickable although all other components on the sidebar for example selectbox gone. |
Ah. @juhonkang by running Separately, you can try this: my_sidebar = st.sidebar.empty()
my_sidebar = my_sidebar.container()
# replace all calls of st.sidebar with my_sidebar |
Checklist
Summary
After clicking the button to switch_page or page_link in the sidebar of the streamlit, it will turn to the new page, but won't disable these buttons. If we click it, an error on the web will happen.
Reproducible Code Example
Steps To Reproduce
Expected Behavior
The old page_link button gonna be disabled
Current Behavior
Still clickable, if there is a large processing => error. Note that is above code is just a demonstration example, I can't give out my project code of course :(
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: