Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Async support - Lazy dcc.Graph and lazy plotlyjs - #616

Merged
Marc-Andre-Rivet merged 131 commits into
devfrom
exp-dynamic-2
Oct 21, 2019
Merged

Async support - Lazy dcc.Graph and lazy plotlyjs#616
Marc-Andre-Rivet merged 131 commits into
devfrom
exp-dynamic-2

Conversation

@Marc-Andre-Rivet

@Marc-Andre-RivetMarc-Andre-Rivet commented Aug 26, 2019

Copy link
Copy Markdown
Contributor

Companion PR for plotly/dash-table#554


  • Use plotly-dist for dash_core_components/plotly-x.xx.x.js instead of having two copies to keep in sync
  • Run dcc.Graph tests in both eager and lazy mode
  • Test window.Plotly loading / behavior for lazy / eager / explicitly loaded Plotlyjs through asset

Note: plotly.js-dist only provides a non-minified version of plotly.js, switched over to using plotly.js directly and resolving the desired js with resolve.alias in webpack..

Marc-André Rivet added 4 commits August 26, 2019 14:32
@alexcjohnsonalexcjohnson mentioned this pull request Sep 5, 2019

def test_grbs001_graph_without_ids(dash_dcc):
app = dash.Dash(__name__)
@pytest.mark.parametrize("is_eager", [True, False])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Marc-Andre-Rivet does this change make trouble for you?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

After a few tweaks and figuring out the equivalent functions vs. self., this seems to be working fine :)

@Marc-Andre-RivetMarc-Andre-Rivet changed the title Experiment - Lazy loading Plotly.jsAsync support - Lazy dcc.Graph and lazy plotlyjsOct 15, 2019
@Marc-Andre-Rivet

Copy link
Copy Markdown
ContributorAuthor

@alexcjohnson Last concern / mystery solved for this PR..

https://github.com/plotly/dash-core-components/pull/616/files#r327786637

Amongst the mass of merges / tweaks for various unrelated changes that had to be done, I forgot I did this change for the tab tests.

Comment threadCHANGELOG.md Outdated
## [1.3.0] - 2019-10-08
### Added
- Added `search_value` prop to `Dropdown`, for server-side options loading/filtering. [#660](https://github.com/plotly/dash-core-components/pull/660)
- [#616](https://github.com/plotly/dash-core-components/pull/616) Async Graph and Plotly.js

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Unreleased

@alexcjohnsonalexcjohnson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just fix the changelog, then 💃 !!!

Sign up for freeto 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.

3 participants

@Marc-Andre-Rivet@byronz@alexcjohnson