Yes, for AdGrid it requries some JS in cellRenderer How to display a clickable link pandas dataframe - #5 by edsaac
import streamlit as st
import pandas as pd
from st_aggrid import AgGrid, JsCode, GridOptionsBuilder
df = pd.DataFrame(
{
"Site": "DuckDuckGo Google Bing".split(),
"URL": "https://duckduckgo.com/ https://www.google.com/ https://www.bing.com/".split(),
}
)
gb = GridOptionsBuilder.from_dataframe(df)
gb.configure_column(
"URL",
headerName="URL",
cellRenderer=JsCode(
"""
function(params) {
return '<a href=' + params.value + ' target="_blank"> 🖱️ </a>'
}
"""
),
)
gridOptions = gb.build()
AgGrid(df, gridOptions=gridOptions, allow_unsafe_jscode=True)