I am displaying only Login page 1st up and after successfull authentication I swtich page to “Create.py”. Till here everything works fine.
I want to have a logout button on “Create.py” which would in turn switch the control back to Login page(which is one directory up). Is there a hack to do this?
1 small thing, when ever I try to add a logo on sidebar using below line of code it somehow does not seem to work the sidebar remains blank. Should I use the CSS approach to have a logo(stored locally in my PC) on sidebar.
from streamlit_extras.app_logo import add_logo
add_logo(“C:/logo/logo.png”, height=90)
You can actually just do st.sidebar.image(<image location>) instead of using the streamlit extra. Either way, though, you will want to either use a logo file that is in the same folder as your app, or use a url.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.