Skip to content

Make plotly-cloud a default install dependency - #3947

Open
T4rk1n wants to merge 8 commits into
devfrom
deps/plotly-cloud-default-install
Open

Make plotly-cloud a default install dependency#3947
T4rk1n wants to merge 8 commits into
devfrom
deps/plotly-cloud-default-install

Conversation

@T4rk1n

@T4rk1n T4rk1n commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Makes plotly-cloud a default install dependency of Dash instead of only being available through the optional dash[cloud] extra. plotly-cloud (imported as plotly_cloud) powers the plotly console entry point and Dash's cloud integration in dash/dash.py, so shipping it by default means those features work out of the box.

Changes

  • Add plotly-cloud to requirements/install.txt (unpinned, matching the file's existing style and requirements/cloud.txt).
  • Keep the cloud extra (requirements/cloud.txt + setup.py extras_require) unchanged so pip install dash[cloud] still resolves for backward compatibility. It is now redundant but non-breaking.
  • Update the ImportError hint in dash/_plotly_cli.py: since plotly-cloud is now always installed, the stale dash[cloud] suggestion is replaced with pip install plotly-cloud (or reinstalling dash). The defensive try/except is retained.
  • Add a CHANGELOG entry under Added.

Closes #3513

plotly-cloud is now installed by default with dash instead of only via
the optional dash[cloud] extra. The extra is kept for backward
compatibility. Update the plotly CLI ImportError hint to no longer point
at dash[cloud].

Closes #3513

@ndrezn ndrezn left a comment

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.

The [cloud] shortcut should also be removed right? Or are you worried about backwards compatibility?

@T4rk1n

T4rk1n commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

The [cloud] shortcut should also be removed right? Or are you worried about backwards compatibility?

Yes, can keep it for backward compatibility until next major release.

@camdecoster camdecoster left a comment

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.

Any idea why the tests still aren't passing?

Comment thread CHANGELOG.md Outdated
T4rk1n and others added 4 commits August 24, 2026 14:58
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
…y-cloud layout id

plotly-cloud is now a default install dependency, and it appends a
_plotly-cloud-* component to every app's layout via a dash_hooks entry
point. That id showed up in the "string ids in the current layout" list
of the callback-validation error message, breaking the exact-match
assertions in dvcv008/dvcv009. Strip any _plotly-cloud-* id before
comparing so the tests pass whether or not plotly-cloud is installed.
@sonarqubecloud

Copy link
Copy Markdown

@T4rk1n

T4rk1n commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

@camdecoster The ci is now fixed, there was an issue with id added that the tests were not built for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add plotly-cloud to default Dash install

4 participants