Skip to content

fix: replace deprecated plotly.graph_objs with plotly.graph_objects#1897

Open
sosush wants to merge 1 commit into
evidentlyai:mainfrom
sosush:fix/plotly-graph-objects
Open

fix: replace deprecated plotly.graph_objs with plotly.graph_objects#1897
sosush wants to merge 1 commit into
evidentlyai:mainfrom
sosush:fix/plotly-graph-objects

Conversation

@sosush

@sosush sosush commented Jul 4, 2026

Copy link
Copy Markdown

This change replaces deprecated Plotly imports in the source tree with the supported import path while keeping the edit strictly scoped to the requested lines.

What changed

  • Replaced deprecated imports of the form:
    • import plotly.graph_objs as go
    • from plotly import graph_objs as go
  • With:
    • import plotly.graph_objects as go

Scope

  • The change was applied only to Python files under src.
  • No non-source files were modified.
  • No behavioral logic, comments, or surrounding code were changed.
  • The existing alias go was preserved, so no further code updates were required.

Affected areas

The replacements were made in legacy metric, renderer, UI, test utility, and visualization modules under evidently, including:

  • classification performance metrics
  • data drift metrics
  • regression performance metrics
  • renderer helpers
  • dashboard-related UI code
  • visualization utilities
  • test helper modules

Why this change was made

Plotly’s graph_objs namespace is deprecated in favor of graph_objects. Updating these imports removes deprecated usage and aligns the codebase with the newer import path.

Validation

The change was verified to be limited to the intended import-line replacements only. The broader pytest suite still shows one unrelated existing failure in test_demo_project.py, which is outside the scope of this import-only update.

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