github plotly/dash v2.3.0
Dash v2.3.0

latest releases: v2.18.2, v2.18.1, v2.18.0...
2 years ago

Added

  • #1949 Add built-in MathJax support to both dcc.Markdown and dcc.Graph. A new boolean prop mathjax was added to these two components, defaulting to False. Set mathjax=True to enable math rendering. This work uses MathJax v3, although dcc.Graph and Plotly.js can also be used with MathJax v2.
    • In dcc.Markdown this 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!

Updated

  • #1949 Upgrade Plotly.js to v2.11.0 (from v2.9.0)
    • Feature release 2.10.0:
      • Support for MathJax v3
      • fillpattern for scatter traces 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: the regl-based traces (scattergl, scatterpolargl, parcoords, and splom) are only strict in the strict bundle, which is NOT served by default in Dash. To use this bundle with Dash, you must either download it and put it in your assets/ folder, or include it as an external_script from the CDN: https://cdn.plot.ly/plotly-strict-2.11.0.min.js. All other trace types are strict in the normal bundle.
    • Patch release 2.10.1 containing a bugfix for mesh3d traces.

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 customdata with clickData and other events.

Don't miss a new dash release

NewReleases is sending notifications on new releases.