Dash v2.3.0
Added
- #1949 Add built-in MathJax support to both
dcc.Markdownanddcc.Graph. A new boolean propmathjaxwas added to these two components, defaulting toFalse. Setmathjax=Trueto enable math rendering. This work uses MathJax v3, althoughdcc.Graphand Plotly.js can also be used with MathJax v2.- In
dcc.Markdownthis has two flavors: inline math is any content between single dollar signs, for example"$E=mc^2$", and "display" math (on its own line, potentially multi-line) is delimited by double dollar signs. - In
dcc.Graph, most text fields (graph and axis titles, trace names, scatter and bar text) can use math, and it's enabled with single dollar sign delimiters. A limitation here is that currently a given piece of text can only be one or the other: if math is found, everything outside the delimiters is ignored. See https://plotly.com/python/LaTeX/ for details. - For an intro to LaTeX math, see https://en.wikibooks.org/wiki/LaTeX/Mathematics.
- Big thanks to Equinor for sponsoring this development, including the related work in Plotly.js!
- In
Updated
- #1949 Upgrade Plotly.js to v2.11.0 (from v2.9.0)
- Feature release 2.10.0:
- Support for MathJax v3
fillpatternforscattertraces with filled area
- Feature release 2.11.0:
- Every trace type can now be rendered in a stricter CSP environment, specifically avoiding
unsafe-eval. Please note: theregl-based traces (scattergl,scatterpolargl,parcoords, andsplom) are only strict in thestrictbundle, which is NOT served by default in Dash. To use this bundle with Dash, you must either download it and put it in yourassets/folder, or include it as anexternal_scriptfrom the CDN: https://cdn.plot.ly/plotly-strict-2.11.0.min.js. All other trace types are strict in the normal bundle.
- Every trace type can now be rendered in a stricter CSP environment, specifically avoiding
- Patch release 2.10.1 containing a bugfix for
mesh3dtraces.
- Feature release 2.10.0:
Fixed
-
#1915 Fix bug #1474 when both dcc.Graph and go.Figure have animation, and when the second animation in Figure is executed, the Frames from the first animation are played instead of the second one.
-
#1953 Fix bug #1783 in which a failed hot reloader blocks the UI with alerts.
-
#1942 Fix bug #1663 preventing pie traces from sending
customdatawithclickDataand other events.