Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Update Plotly.js to 1.52.1 #732

Merged
merged 3 commits into from
Jan 14, 2020
Merged

Update Plotly.js to 1.52.1 #732

merged 3 commits into from
Jan 14, 2020

Conversation

Marc-Andre-Rivet
Copy link
Contributor

@@ -230,6 +230,7 @@ def check_graph_config_shape(dash_dcc):
'showSources',
'logging',
'globalTransforms',
'notifyOnLogging',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexcjohnson We already ignore logging, seems like we probably want to ignore another logging themed prop, but need to be certain.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for now we can ignore this one. In fact notifyOnLogging would be useful to dash - and alongside it logging becomes useful - because this repeats console log messages into the UI as notification boxes. Unfortunately right now this can only be used globally (Plotly.setPlotConfig), not per-plot in the config prop. In fact the better solution for dash will be when we have logging events plotly/plotly.js#4462, and we can hopefully pass these along to the main dash devtools.

@@ -28,7 +27,7 @@
"prebuild:js": "cp node_modules/plotly.js/dist/plotly.min.js dash_core_components_base/plotly.min.js",
"build:js": "webpack --mode production",
"build:py_and_r": "dash-generate-components ./src/components dash_core_components -p package-info.json && cp dash_core_components_base/** dash_core_components/ && dash-generate-components ./src/components dash_core_components -p package-info.json --r-prefix 'dcc'",
"build": "run-s build:js generator build:py_and_r",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some extra clean up / simplification, this is no longer necessary b/c of the prebuild command.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changelog then 💃
Thanks for cleaning up the obsolete script!

- Upgraded plotly.js to [1.52.1](https://github.com/plotly/plotly.js/releases/tag/v1.52.1)
- [Feature release 1.52.0](https://github.com/plotly/plotly.js/releases/tag/v1.52.0) which contains:
- Enable loading locale bundles before plotly.js bundles [#4453](https://github.com/plotly/plotly.js/pull/4453)
- `ko` localization [#4315](https://github.com/plotly/plotly.js/pull/4315)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexcjohnson Added these based on previous entries (ko) and because of its significance for async/Dash. Feel free to add other items that are relevant.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine, good call pointing out the ordering fix. Aside from that, there are no new trace types in 1.52, that's the most important thing to include.

@Marc-Andre-Rivet Marc-Andre-Rivet merged commit b5e364b into dev Jan 14, 2020
@Marc-Andre-Rivet Marc-Andre-Rivet deleted the plotlyjs-1.52.1 branch January 14, 2020 02:42
@Marc-Andre-Rivet Marc-Andre-Rivet added this to the Dash v1.8 milestone Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants