fix: replace deprecated plotly.graph_objs with plotly.graph_objects#1897
Open
sosush wants to merge 1 commit into
Open
fix: replace deprecated plotly.graph_objs with plotly.graph_objects#1897sosush wants to merge 1 commit into
sosush wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
import plotly.graph_objs as gofrom plotly import graph_objs as goimport plotly.graph_objects as goScope
gowas 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:
Why this change was made
Plotly’s
graph_objsnamespace is deprecated in favor ofgraph_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.