GeezerVison is showing github.com — Fix violin plot compatibility with NumPy 2.4+ by mosh3eb · Pull Request #5505 · plotly/plotly.py
Conversation
mosh3eb
commented
Feb 14, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
The interpolation parameter was removed in NumPy 2.4.0 and replaced with 'method'. This was causing create_violin() to fail with newer NumPy versions.
Added version detection to use the correct parameter based on the installed NumPy version, maintaining backward compatibility with NumPy 1.x while supporting 2.4+.
Fixes #5461
Code PR
- I have read through the contributing notes and understand the structure of the package. In particular, if my PR modifies code of
plotly.graph_objects, my modifications concern the code generator and not the generated files.
- I have added tests or modified existing tests.
- For a new feature, I have added documentation examples (please see the doc checklist as well).
- I have added a CHANGELOG entry if changing anything substantial.
- For a new feature or a change in behavior, I have updated the relevant docstrings in the code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The interpolation parameter was removed in NumPy 2.4.0 and replaced
with 'method'. This was causing create_violin() to fail with newer
NumPy versions.
Added version detection to use the correct parameter based on the
installed NumPy version, maintaining backward compatibility with
NumPy 1.x while supporting 2.4+.
Fixes plotly#5461
|
Thanks for the PR! This issue was recently fixed in #5483, so I'm closing this.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
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.