question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Display clickable links in st.dataframe or st.table

See original GitHub issue

I 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: image

But it does not work in Streamlit: image


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:open
  • Created 4 years ago
  • Reactions:17
  • Comments:8

github_iconTop GitHub Comments

12reactions
jriekecommented, Sep 6, 2022

We are planning to implement this within the next few months!

4reactions
carolinedlucommented, Oct 4, 2021

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! 🎈

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found