plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
420 stars 72 forks source link

How to put an image in a table cell? #673

Closed ValeryPolyakov closed 4 years ago

ValeryPolyakov commented 4 years ago

I would like to put an image(s) in a table cell(s). The image could be an embedded svg or refer to a .png file location. For some reason the table does not interpret the tag.

If it is not possible directly, maybe you have some workarounds.

Thanks for your help.

Marc-Andre-Rivet commented 4 years ago

Dash v1.8.0 added support for markdowns in the table. There's an example in the release announcement.

Nishan-Pradhan commented 3 years ago

Is it possible to put an image in this same way into a basic plotly go.Table cell? Thanks

alexcjohnson commented 3 years ago

No, go.Table (from plotly.py) has a very different interface and does not support images in any way AFAIK. You can use a very limited subset of HTML in cell contents (<a>, <b>, <em>, <i>, <br>, <span>, <sub>, <sup>, with style attributes and href for <a>) but that's it.

stazam commented 2 years ago

Anything has changed? Is it possible now in basic plotly tables?