Skip to content

Commit 5e6eb88

Browse files
authored
Merge branch 'dev' into use-npm-ci
2 parents 96e547f + 6ee2328 commit 5e6eb88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1370
-572
lines changed

.circleci/config.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,19 @@ jobs:
5454
pip install -e .[ci,dev,testing,celery,diskcache] --progress-bar off
5555
pip list | grep dash
5656
npm ci
57-
npm run cibuild
57+
npm run build.sequential
5858
python setup.py sdist
5959
mkdir dash-package && cp dist/*.tar.gz dash-package/dash-package.tar.gz
6060
ls -la dash-package
6161
no_output_timeout: 30m
62+
- run:
63+
name: Display npm errors and exit on failed builds
64+
command: |
65+
if [ -d "/home/circleci/.npm/_logs" ]
66+
then
67+
cat /home/circleci/.npm/_logs/*
68+
exit 1
69+
fi
6270
- save_cache:
6371
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
6472
paths:
@@ -112,7 +120,7 @@ jobs:
112120
set -eo pipefail
113121
pip install -e . --progress-bar off && pip list | grep dash
114122
npm ci npm run initialize
115-
npm run cibuild
123+
npm run build.sequential
116124
npm run lint
117125
- run:
118126
name: 🐍 Python Unit Tests & ☕ JS Unit Tests

CHANGELOG.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,33 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5-
## [Unreleased]
5+
## [2.3.0] - 2022-03-13
6+
7+
### Added
8+
- [#1949](https://github.com/plotly/dash/pull/1915) 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.
9+
- 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.
10+
- 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.
11+
- For an intro to LaTeX math, see https://en.wikibooks.org/wiki/LaTeX/Mathematics.
12+
- Big thanks to [Equinor](https://www.equinor.com/) for sponsoring this development, including the related work in Plotly.js!
13+
14+
### Updated
15+
- [#1949](https://github.com/plotly/dash/pull/1915) Upgrade Plotly.js to v2.11.0 (from v2.9.0)
16+
- [Feature release 2.10.0](https://github.com/plotly/plotly.js/releases/tag/v2.10.0):
17+
- Support for MathJax v3
18+
- `fillpattern` for `scatter` traces with filled area
19+
- [Feature release 2.11.0](https://github.com/plotly/plotly.js/releases/tag/v2.11.0):
20+
- 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.
21+
- Patch release [2.10.1](https://github.com/plotly/plotly.js/releases/tag/v2.5.1) containing a bugfix for `mesh3d` traces.
22+
23+
24+
### Fixed
25+
- [#1915](https://github.com/plotly/dash/pull/1915) Fix bug [#1474](https://github.com/plotly/dash/issues/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.
26+
27+
- [#1953](https://github.com/plotly/dash/pull/1953) Fix bug [#1783](https://github.com/plotly/dash/issues/1783) in which a failed hot reloader blocks the UI with alerts.
28+
29+
- [#1942](https://github.com/plotly/dash/pull/1942) Fix bug [#1663](https://github.com/plotly/dash/issues/1663) preventing pie traces from sending `customdata` with `clickData` and other events.
30+
31+
## [2.2.0] - 2022-02-18
632

733
### Added
834
- [#1923](https://github.com/plotly/dash/pull/1923):
@@ -17,6 +43,14 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1743
- Adds `ticklabelstep` to axes to reduce tick labels while still showing all ticks.
1844
- Displays the plotly.js version when hovering on the modebar. This helps debugging situations where there might be multiple sources of plotly.js, for example `/assets` vs the versions built into `dcc` or `ddk`.
1945

46+
- [#1930](https://github.com/plotly/dash/pull/1930) Upgrade JavaScript dependencies across renderer and all components.
47+
48+
### Fixed
49+
- [#1932](https://github.com/plotly/dash/pull/1932) Fixes several bugs:
50+
- Restores compatibility with IE11 [#1925](https://github.com/plotly/dash/issues/1925)
51+
- Restores `style_header` text alignment in Dash Table [#1914](https://github.com/plotly/dash/issues/1914)
52+
- Clears the unneeded `webdriver-manager` requirement from `dash[testing]` [#1919](https://github.com/plotly/dash/issues/1925)
53+
2054
## [2.1.0] - 2022-01-22
2155

2256
### Changed

components/dash-core-components/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ lib/
44
lib/bundle.js*
55
coverage/
66
node_modules/
7+
packages/
78
.npm
89
vv/
910
venv/

components/dash-core-components/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ venv/
1919
/build
2020
/dash_core_components
2121
dash_core_components_base/plotly.min.js
22+
dash_core_components_base/mathjax.js
2223
/deps
2324
/inst
2425
/man

components/dash-core-components/CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ you've pulled from upstream otherwise you may be running with an out of date
3131
`bundle.js`. See the instructions for building `bundle.js` in the [Testing
3232
Locally](README.md#testing-locally) section of README.md.
3333

34-
## Updating Plotly.js
34+
## Updating official version of Plotly.js
3535

36-
1. Update the version of `plotly.js` in package.json. Always use an exact version without "^" or "~"
36+
1. Update the version of `plotly.js-dist-min` in package.json. Always use an exact version without "^" or "~"
3737
2. Run `npm install` followed by `npm run build`, the Plotly.js artifact will be copied and bundled over as required
3838
4. Update `CHANGELOG.md` with links to the releases and a description of the changes. The message should state (see the existing `CHANGELOG.md` for examples):
3939
* If you're only bumping the patch level, the heading is "Fixed" and the text starts "Patched plotly.js". Otherwise the heading is "Updated" and the text starts "Upgraded plotly.js"
@@ -42,6 +42,11 @@ Locally](README.md#testing-locally) section of README.md.
4242
* All patch versions included, with links to their release pages and a note that these fix bugs
4343
5. When bumping the dcc version, a plotly.js patch/minor/major constitutes a dcc patch/minor/major respectively as well.
4444

45+
### Using a temporary `plotly.js-dist-min` package (or other dependencies)
46+
47+
> During integrated development of new features or bug fixes in plotly.js and dash, it may be required to install a temporary plotly.js-dist-min package (or other packages) including proposed changes. To do so, please place the `.tgz` file in `packages/` folder then `npm install` the file.
48+
49+
4550
## Financial Contributions
4651

4752
If your company wishes to sponsor development of open source dash components, please [get in touch][].

components/dash-core-components/dash_core_components_base/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"graph",
4949
"highlight",
5050
"markdown",
51+
"mathjax",
5152
"slider",
5253
"upload",
5354
]

components/dash-core-components/package-lock.json

Lines changed: 68 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)