Skip to content

Display images in st.experimental_data_editor() #6597

@hadilou

Description

@hadilou

Problem

Not able to visualize images directly in st.dataframe or st.experimental_data_editor.

Solution

It would be nice if st.dataframe and st.experimental_data_editor would automatically recognize image data or include a parameter to indicate if the data type if PIL.Image or base64 encoded image and display it as in conventional html. This would be a really helpful feature.
Currently, one can visualize images with st.markdown but it doesn't offer possibilities to edit non-images columns in the dataframe.


Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.data_editorRelated to the `st.data_editor` widgettype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions