Skip to content

Drop deprecated mapbox entries removed in plotly v7.0.0 - #162

Merged
raphaeltimbo merged 1 commit into
petrobras:mainfrom
raphaeltimbo:fix/plotly7-drop-mapbox
Sep 9, 2026
Merged

raphaeltimbo merged 1 commit into
petrobras:mainfrom
raphaeltimbo:fix/plotly7-drop-mapbox

Conversation

@raphaeltimbo

Copy link
Copy Markdown
Collaborator

Summary

plotly 7.0.0 removed the mapbox layout key and the scattermapbox trace type (replaced by map / scattermap since plotly 5.24). The ccp template in ccp/plotly_theme.py still registered both, so on plotly 7 import ccp raised:

ValueError: Invalid property specified for object of type plotly.graph_objs.layout.template.Data: 'scattermapbox'

This also broke import ross, which imports ccp.

ccp draws no maps, so the two entries are simply deleted, following the precedent of 3b19365 ("Drop deprecated heatmapgl traces in plotly v6.0.0"). No compatibility shim is added; the resulting template loads on plotly 5.x through 7.0.

Verification

  • import ccp works on plotly 6.9.0 (current lock) and on plotly 7.0.0 in a throwaway venv.
  • On main, the same plotly 7 venv reproduces the ValueError above.
  • Fast test tier: uv run pytest -m "not slow" -n auto --dist loadfile → 191 passed.

plotly 7.0.0 removed the mapbox layout key and the scattermapbox trace
type (replaced by map / scattermap since plotly 5.24). The template in
plotly_theme.py still registered both, so import ccp raised:

    ValueError: Invalid property specified for object of type
    plotly.graph_objs.layout.template.Data: 'scattermapbox'

ccp draws no maps, so the entries are simply deleted. Verified that
import ccp works on plotly 6.9.0 and 7.0.0 after this change.
@raphaeltimbo
raphaeltimbo merged commit 3674a70 into petrobras:main Sep 9, 2026
2 checks passed
@raphaeltimbo raphaeltimbo mentioned this pull request Sep 9, 2026
raphaeltimbo added a commit that referenced this pull request Sep 9, 2026
Bump the version to 0.4.1 and add release notes covering everything
merged since v0.4.0: #154, #155, #156, #157, #158, #159, #162.
@raphaeltimbo
raphaeltimbo deleted the fix/plotly7-drop-mapbox branch September 9, 2026 22:58
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.

1 participant