Skip to content

fix: bump nbformat minimum version to 5.10.4 for numpy 2.0 compatibility#865

Open
Br1an67 wants to merge 1 commit intonteract:mainfrom
Br1an67:fix/issue-800-fix-800
Open

fix: bump nbformat minimum version to 5.10.4 for numpy 2.0 compatibility#865
Br1an67 wants to merge 1 commit intonteract:mainfrom
Br1an67:fix/issue-800-fix-800

Conversation

@Br1an67
Copy link
Contributor

@Br1an67 Br1an67 commented Mar 7, 2026

Fixes #800

Summary

Fix for #800: 该 Issue 报告了 papermill 在 numpy v2.0.0 环境下运行时出现 AttributeError: _ARRAY_API not found 错误。这是由于旧版本的 nbformat 依赖了 numpy v2 中已移除或更改的内部 API。

Changes

pyproject.toml   | 2 +-
 requirements.txt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

NumPy 2.0 removed the internal _ARRAY_API attribute which caused
nbformat serialization to fail with AttributeError. Updating the
minimum nbformat version to 5.10.4 resolves this compatibility issue.
@Br1an67 Br1an67 mentioned this pull request Mar 7, 2026
@codecov
Copy link

codecov bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.13%. Comparing base (cb2eb37) to head (1f7c370).
⚠️ Report is 34 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #865      +/-   ##
==========================================
- Coverage   91.54%   91.13%   -0.42%     
==========================================
  Files          17       17              
  Lines        1621     1635      +14     
==========================================
+ Hits         1484     1490       +6     
- Misses        137      145       +8     

see 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d8d155...1f7c370. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rgbkrk
Copy link
Member

rgbkrk commented Mar 7, 2026

Can you rebase? This is somehow out of date with main.

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.

error with numpy v2

2 participants