I get the StreamlitAPIException: The value “:material/table_convert:” is not a valid Material icon.
My app is running on streamlit cloud.
I get the StreamlitAPIException: The value “:material/table_convert:” is not a valid Material icon.
My app is running on streamlit cloud.
Funny, all but two of the “table_xxx” icons work. Only the commented lines in the following code raise the exception. No idea who’s fault it is.
import streamlit as st
st.button(label="Table Bar", icon=":material/table_bar:")
st.button(label="Table Chart", icon=":material/table_chart:")
st.button(label="Table Chart View", icon=":material/table_chart_view:")
# ~ st.button(label="Table Convert", icon=":material/table_convert:")
# ~ st.button(label="Table Edit", icon=":material/table_edit:")
st.button(label="Table Eye", icon=":material/table_eye:")
st.button(label="Table Rows", icon=":material/table_rows:")
st.button(label="Table View", icon=":material/table_view:")
“filter_arrow_right” is also not working (thought it may be the double “_” but “vpn_key_off” works…)
I think that’s a bug.
The icon name needs to be in this set in material_icon_names.py
to be recognized by Streamlit. That set is generated by this script called scripts/update_material_icon_names.py
, which reads the material icon names and codepoints from this other file in the material-fonts repository.
But the last time material_icon_names.py
was updated in Streamlit’s repo was five months ago, so the available codepoints used to generate that set was likely this version which did not include, for example, table_convert
or table_edit
.
Likely fixed for next release
Edit:
This was patched with version 1.40.1
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
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.