plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.45k stars 2.07k forks source link

provide Mathjax support in DataTable #2180

Open NilsUUID opened 2 years ago

NilsUUID commented 2 years ago

Hello Dash Community,

Dash v2.3.0 introduced Mathjax support in dcc.Markdown and dcc.Graph which is very nice for producing scientific dashboards.

Dash DataTable also provides the Markdown presentation option, but Mathjax does not seem to be activated in this case. This feature would be nice in order to display pretty-printed data in the table.

I tried outputing a $$ delimited LaTex formula in a MarkDown cell of DataTable but it didn't rendered with Mathjax (using Dash 2.6.0):

image

Thanks

TSheyd commented 1 year ago

Are there any plans on implementing this? Would be very helpful to be able to write LaTex in column name etc...

avivajpeyi commented 1 year ago

It seems like this isnt supported by data tables unfortunately: https://datatables.net/forums/discussion/59069/to-integrate-mathjax-with-datatables#Comment_161051

Folks seem to have gotten around this by hacking the raw HTML: https://stackoverflow.com/questions/35864810/mathjax-render-only-on-first-page-of-the-data-table