Hyperlink a Column based on another column


We were initially using AGgrid, but wanted to use the new Sreamlit native features.

When trying to hyperlink the name of a person if they have a document, using the new column config feature, we can either make everyone a hyperlink or no one a hyperlink. Using the st.column_config.LinkColumn we have tried making everyone in the column of that dataframe a hyperlink, but then it does not display correctly. Is there a way to hyperlink a certain person from that column depending on if they have a document?

Steps to reproduce

Code snippet:

    edited_df = st.data_editor(
            'FullName': 'Name',
            'DocumentUri': st.column_config.LinkColumn(

Debug info

  • Streamlit version: 1.24.0
  • Python version: 3.11.4

Requirements file


Additional information

We tried a workaround using the st.column_config.ImageColumn, but there is not an image to the link provided because it is a document. We also have also have other information in the dataframe that we need to display in the chart, so st.write will not work either.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.