Open
Description
When calling write_image
on a figure, it is required that kaleido
is installed in the active environment. It would be great if this dependency were declared in pyproject.toml as an optional group.
For example, here is the approach taken in pyvista:
This would improve ergonomics for packages that depend on plotly, since kaleido
is (from their perspective) an implementation detail. Such a package could then depend on plotly[io]
, for example.
Activity
Rupt commentedon Jun 3, 2025
#5062 added
plotly[kaleido]
tpgillam commentedon Jun 3, 2025
The version bound on kaleido is pinned to a pre-release:
plotly.py/pyproject.toml
Line 49 in 1d6d3bc
#5062 declares that both version 0 and version 1 should be supported, so perhaps this pin can be relaxed?