You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Allow HyperLinks in cells via either dash_html_components.A, plain HTML string, or a markdown string #222
if you can point me to where to look at, I should be able to work out the code myself I think. Thanks!
Thanks for offering to jump in! Before we start coding, we need to be very thoughful about our API design, as I see this type of feature as just one of the features that first-class data type support will offer. That is, we need an API that allows for different "cell-renderers" that correspond to different "data-types". In some cases, data types will have only a single cell-renderer (e.g. enum and dropdown) but in other cases, there might be multiple cell-renders for a single data type (string could be rendrered as text input or link). So in this case, would a link be just a new cell-renderer or would it be a data type of its own?
What we decide above will also impact other things like filtering and editing
do we include the hyperlink in the filtering, do we render a special type of filter UI for hyperlinks?
what does the editing experience look like for a link?
So, first we need to nail down data types and how the impact all of these other things (rendering, filtering, editing). That discussion will include things like support for hyperlinks. Then, once that API is nailed down, hopefully adding hyperlink support will fit in naturally.
I'm working on a design document for data types this week and I'll link this issue that discussion when I post it.
I'm also looking for this feature. Love the ability to have embedded links in a Dash table like shown in this recipe and I'd like to use DataTable instead.
Hi, I just did this for my Excel spreadsheet cell using =HYPERLINK ... now I want to do the same for DataTable ... I don't want to lose DataTable functionality by rendering a regular HTML table.
Closed in #606, this will be available via markdown strings in the next release (this week). Stay tuned to the community forum for the release announcement.
Reacted by soliverc, Daniel, codeshokunin, Kyle King, Yanan Chen, Brandon Serna and Christopher Hann-Soden
Hi, I just did this for my Excel spreadsheet cell using =HYPERLINK ... now I want to do the same for DataTable ... I don't want to lose DataTable functionality by rendering a regular HTML table.
dash_table 4.6.0 has this working now. Thanks! I'm using Markdown.
@wvwhome Thanks for sharing. I was expecting to achieve this using using datatable properties(e,g style_header, style_cell). I tried using style_data_conditional but not able to achieve the link for that text. I don't want to add any url on that text. I just wanted that text should be clickable.
Slightly related, but "presentation": "markdown" appears to break style_data = {"textAlign": "right"}. After setting presentation to markdown the alignment of my cells went haywire, and as far as I can see there's no way to restore this. As per the CommonMark specs, alignment should work like this:
bla
However, formatting your cell data to include this will result in your table literally printing <p etc
(while it does parse the ()[] structure for hyperlinks). Now I'm guessing this has something to do with enabling inline HTML, as there is a specific dangerously_allow_html boolean for dcc.Markdown objects. However, as far as I can tell there's no way to enable HTML for markdown presentation of cell data. Am I missing something? Is this a bug?
Reacted by Anisha Zaveri, bednaJedna and Juan Trejo
Closed in #606, this will be available via markdown strings in the next release (this week). Stay tuned to the community forum for the release announcement.
@chriddyp Yes I tried using markdown and I am successfully able to create link in cell. Now the problem is link is opening in the same tab, and I am loosing the my previous data.
Could you provide me the suggestions to how do I open the link in new tab using markdown? Or tell me the what workaround should be required for that, so I can do it at my end.
Thanks
Reacted by Jeff Lu (Chia-Ching Lu) and Henry E. Miller
Could you provide me the suggestions to how do I open the link in new tab using markdown? Or tell me the what workaround should be required for that, so I can do it at my end.
Wondering the same thing. Hope someone can help out and also provide how to link the dash_table.DataTable to the dataframe just like what @wvwhome did.
Activity
zshao commentedon Nov 6, 2018
@chriddyp if you can point me to where to look at, I should be able to work out the code myself I think. Thanks!
eddy-ojb commentedon Nov 6, 2018
I second this!
eliasdabbas commentedon Nov 6, 2018
+1
chriddyp commentedon Nov 6, 2018
Thanks for offering to jump in! Before we start coding, we need to be very thoughful about our API design, as I see this type of feature as just one of the features that first-class data type support will offer. That is, we need an API that allows for different "cell-renderers" that correspond to different "data-types". In some cases, data types will have only a single cell-renderer (e.g.
enumanddropdown) but in other cases, there might be multiple cell-renders for a single data type (stringcould be rendrered astext inputorlink). So in this case, would a link be just a new cell-renderer or would it be a data type of its own?What we decide above will also impact other things like filtering and editing
So, first we need to nail down data types and how the impact all of these other things (rendering, filtering, editing). That discussion will include things like support for hyperlinks. Then, once that API is nailed down, hopefully adding hyperlink support will fit in naturally.
I'm working on a design document for data types this week and I'll link this issue that discussion when I post it.
I hope that makes sense!
Marc-Andre-Rivet commentedon Nov 9, 2018
Linking #236 for dcc.Link support.
chirayu11 commentedon Nov 13, 2018
jscottNRG commentedon Nov 29, 2018
I'm also looking for this feature. Love the ability to have embedded links in a Dash table like shown in
this recipe and I'd like to use DataTable instead.
jurezu commentedon Apr 5, 2019
Any updates on this issue?
Coding-with-Adam commentedon Apr 24, 2019
Hi.
Any updates on this issue? I'm trying to add links into rows as well.
Coding-with-Adam commentedon Apr 24, 2019
Hi.
Any updates on this issue? I'm trying to add links into rows as well.
zhsee commentedon May 14, 2019
@chriddyp I wish to have this feature in my app. is it ready?
wvwhome commentedon May 24, 2019
Hi, I just did this for my Excel spreadsheet cell using =HYPERLINK ... now I want to do the same for DataTable ... I don't want to lose DataTable functionality by rendering a regular HTML table.
20 remaining items
jwazne commentedon Dec 9, 2019
Thank you @chriddyp .
For now I'm using the workaround described by brad here : https://community.plot.ly/t/links-in-datatable-multipage-app/26081/5
But if I could avoid any javascript in my app that will be better for me :)
ce603 commentedon Dec 29, 2019
+1 for this feature
Zackhardtoname commentedon Dec 29, 2019
+1 for this (Python API)
schuler-d commentedon Jan 11, 2020
+1 for this (Python API)
chriddyp commentedon Jan 13, 2020
Closed in #606, this will be available via markdown strings in the next release (this week). Stay tuned to the community forum for the release announcement.
wvwhome commentedon Jan 15, 2020
dash_table 4.6.0 has this working now. Thanks! I'm using Markdown.
yogesh-ezest commentedon Feb 12, 2020
@wvwhome How you achieved the hyperlink for all the values of column without reference of js. It will be good if shared the steps to achieve it?
wvwhome commentedon Feb 12, 2020
Here's some code excerpts below for this datatable column:

yogesh-ezest commentedon Feb 12, 2020
@wvwhome Thanks for sharing. I was expecting to achieve this using using datatable properties(e,g style_header, style_cell). I tried using
style_data_conditionalbut not able to achieve the link for that text. I don't want to add any url on that text. I just wanted that text should be clickable.gdhaaijer commentedon Feb 15, 2020
Slightly related, but "presentation": "markdown" appears to break style_data = {"textAlign": "right"}. After setting presentation to markdown the alignment of my cells went haywire, and as far as I can see there's no way to restore this. As per the CommonMark specs, alignment should work like this:
bla
However, formatting your cell data to include this will result in your table literally printing <p etc
(while it does parse the ()[] structure for hyperlinks). Now I'm guessing this has something to do with enabling inline HTML, as there is a specific dangerously_allow_html boolean for dcc.Markdown objects. However, as far as I can tell there's no way to enable HTML for markdown presentation of cell data. Am I missing something? Is this a bug?
yogesh-ezest commentedon Mar 11, 2020
@chriddyp Yes I tried using markdown and I am successfully able to create link in cell. Now the problem is link is opening in the same tab, and I am loosing the my previous data.
Could you provide me the suggestions to how do I open the link in new tab using markdown? Or tell me the what workaround should be required for that, so I can do it at my end.
Thanks
HiIamJeff commentedon Jul 17, 2020
Wondering the same thing. Hope someone can help out and also provide how to link the dash_table.DataTable to the dataframe just like what @wvwhome did.