Display clickable links in st.dataframe or st.table
See original GitHub issueI want to be able to show clickable content via st.table() or st.dataframe().
Here is the sample codes:
df = pd.DataFrame(['http://google.com', 'http://duckduckgo.com'])
def make_clickable(val): return '<a href="{}">{}</a>'.format(val,val)
df.style.format(make_clickable)
refer to this Stack Overflow thread.
This works in Jupyper Notebook:
But it does not work in Streamlit:
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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:17
- Comments:8
Top Results From Across the Web
Display URLs in dataframe column as a clickable hyperlink
One of the columns of a dataframe I want to display in my streamlit app contains URLs and I would like it to...
Read more >Hyperlink in Streamlit dataframe - python - Stack Overflow
I think this can help Display URLs in dataframe column as a clickable hyperlink.
Read more >Make Dataframes Interactive in Streamlit | by Sharone Li
Streamlit has its native data display elements to display tabular data conveniently using st.write() , st.dataframe() or st.table() .
Read more >Examples • reactable - GitHub Pages
To create a data table, use reactable() on a data frame or matrix. ... Custom metadata can be accessed from JavaScript using the...
Read more >How to create a table with clickable hyperlink to a local file in ...
Step 5: Applying the function on column “location” which will convert path into clickable hyperlink form. Now, whenever we will print the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are planning to implement this within the next few months!
Hi @shermstats and @mcskinner,
Thanks so much for reaching out. I’ve connected with our Product team and let them know this is a feature our users need — hopefully, we can get it prioritized sooner!
Happy Streamlit-ing! 🎈