GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix violin plot compatibility with NumPy 2.4+ by mosh3eb · Pull Request #5505 · plotly/plotly.py

Conversation

@mosh3eb

@mosh3eb mosh3eb commented Feb 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
mosh3eb added 2 commits February 14, 2026 06:30
@mosh3eb
Fix violin plot compatibility with NumPy 2.4+
21c28da
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
@mosh3eb
Apply ruff formatting
54f65a0
@camdecoster camdecoster self-assigned this Feb 18, 2026
@thunze thunze mentioned this pull request Feb 23, 2026
python3Packages.plotly: fix build with pytest 9 and numpy 2.4 NixOS/nixpkgs#493409
Merged
2 of 13 tasks
thunze added a commit to thunze/nixpkgs that referenced this pull request Feb 23, 2026
@thunze
python3Packages.plotly: fix compatibility with numpy 2.4
b2dd7c2
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-interpolation-parameter-from-quantile-and-percentile-functions
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-numpy-in1d

Upstream PRs:
plotly/plotly.py#5505
plotly/plotly.py#5522
@thunze thunze mentioned this pull request Feb 24, 2026
Fix pytest9 and numpy2 deprecations #5524
Closed
3 of 5 tasks
Stebalien pushed a commit to Stebalien/nixpkgs that referenced this pull request Feb 24, 2026
@thunze @Stebalien
python3Packages.plotly: fix compatibility with numpy 2.4
3d79bad
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-interpolation-parameter-from-quantile-and-percentile-functions
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-numpy-in1d

Upstream PRs:
plotly/plotly.py#5505
plotly/plotly.py#5522
thunze added a commit to thunze/nixpkgs that referenced this pull request Feb 25, 2026
@thunze
python3Packages.plotly: fix compatibility with numpy 2.4
17f772d
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-interpolation-parameter-from-quantile-and-percentile-functions
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-numpy-in1d

Upstream PRs:
plotly/plotly.py#5505
plotly/plotly.py#5522
tm-drtina pushed a commit to awakesecurity/nixpkgs that referenced this pull request Mar 2, 2026
@thunze @tm-drtina-arista
python3Packages.plotly: fix compatibility with numpy 2.4
5cf51d0
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-interpolation-parameter-from-quantile-and-percentile-functions
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-numpy-in1d

Upstream PRs:
plotly/plotly.py#5505
plotly/plotly.py#5522
@camdecoster

camdecoster commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR! This issue was recently fixed in #5483, so I'm closing this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@camdecoster camdecoster closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@camdecoster camdecoster

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[BUG]: create_violin() failure with numpy==2.4.0: TypeError: percentile() got an unexpected keyword argument 'interpolation'

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mosh3eb @camdecoster
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.