From 1f7c370ffafb784d32e048b92027a230a21e32c7 Mon Sep 17 00:00:00 2001 From: Br1an67 <932039080@qq.com> Date: Fri, 6 Mar 2026 19:29:24 +0000 Subject: [PATCH] fix: bump nbformat minimum version to 5.10.4 for numpy 2.0 compatibility 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. --- pyproject.toml | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 99336a0a..0b0ecc69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ dependencies = [ "click", "entrypoints", "nbclient>=0.2", - "nbformat>=5.2", + "nbformat>=5.10.4", "pyyaml", "requests", "tenacity>=5.0.2", diff --git a/requirements.txt b/requirements.txt index 6f8ebb8a..094e72e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ click pyyaml -nbformat >= 5.2.0 +nbformat >= 5.10.4 nbclient >= 0.2.0 tqdm >= 4.32.2 requests