Hi all,
I would like to change the message of e.g. “Running load_data()” to a custom message when the user is awaiting the cache function being computed. Is that possible?
Hi all,
I would like to change the message of e.g. “Running load_data()” to a custom message when the user is awaiting the cache function being computed. Is that possible?
Hi @quba9210,
The name of the cached function is displayed. So, instead of load_data()
, change the function name to what you’d like displayed, e.g. my_function()
.
To customize the full message (i.e. remove Running), i’m not sure. Perhaps modifying the cache function somehow: https://github.com/streamlit/streamlit/blob/a20aba7fbc0380b8ed05664f33275d81435a2df7/lib/streamlit/caching.py#L512
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.
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.
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.
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.