My st.columns stopped working a few days ago.
Was something changed? do I need to upgrade something?
I don’t think it’s chrome, because it does this on several different computers. with Chrome and Edge, it does the same weird thing. Here’s the code:
col1,pullTimeCol,col3 = st.columns([1,1,1])
with col1:
st.write("==========")
with pullTimeCol:
st.write(f'Last Updated At: {pullTime} CST')
with col3:
st.write("==========")
I got it fixed, but this was very weird.
– I’m running a Linode server, and testing on my PC at home.
I ended up: upgrading to Python 3.10, and reinstalling all my packages, none of this seemed to help.
I’m also running “screen” under Ubuntu 20.04, to keep streamlit running, when I exit the terminal.
What seemed to fix the issue was to bring down my “Screen -S streamlit -X quit”
then restart it with “screen -S streamlit”, then I ran my script normally using “streamlit run myscript.py”
then tested on my PC, and my st.columns were working again.
– I’m not sure if I was running incompatible libraries, with python8 or if something just got corrupted. but…
after upgrading everything, and restarting my “screen” commands, everything seems fine now.
Thanks for reaching out to me, but for now, everything looks good again.
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.