Skip to content

Commit b6ac8ad

Browse files
mishushakovclaude
andauthored
Update e2b_charts dependencies for numpy 2 support (#193)
* Update e2b_charts dependencies: relax numpy constraint and bump versions - Change numpy from ^1.26.4 to >=1.26.4 to allow numpy 2.x - Bump matplotlib to ^3.10.3, pydantic to ^2.9.1 - Bump dev deps: pytest to ^8.3.5, python-dotenv to ^1.2.1 - Regenerate poetry.lock Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * added changeset * Pin numpy to ^2.3.5 in e2b_charts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Bump Python requirement to ^3.13 and sync poetry lock numpy ^2.3.5 requires Python >=3.11; bumping to ^3.13 per project needs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Change Python requirement from ^3.13 to ^3.12 and sync lock file Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Change Python requirement from ^3.12 to ^3.11 and sync lock file Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix numpy 2.x Decimal conversion in pie chart extraction numpy.float32 no longer implicitly converts to Decimal in numpy 2.x. Wrap with float() before passing to Decimal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Downgrade Python version requirement to 3.10 * Update e2b_charts: numpy ^2.2.6, fix pie chart, update CI tooling - Bump numpy from >=1.26.4 to ^2.2.6 (last 2.x supporting Python 3.10) - Fix numpy 2.x Decimal conversion in pie chart (wrap with float()) - Format pie.py per ruff - Update .tool-versions to Python 3.12 and Poetry 2.1.1 - Update charts_tests.yml to read versions from .tool-versions - Regenerate poetry.lock Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Revert .tool-versions to Python 3.10 and Poetry 1.8.1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update changeset to major bump Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 08b73a4 commit b6ac8ad

File tree

4 files changed

+307
-115
lines changed

4 files changed

+307
-115
lines changed

.changeset/dry-lions-stare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@e2b/data-extractor': major
3+
---
4+
5+
updated dependencies to latest

chart_data_extractor/e2b_charts/charts/pie.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ def _extract_info(self, ax: Axes) -> None:
2525
for wedge in ax.patches:
2626
pie_data = PieData(
2727
label=wedge.get_label(),
28-
angle=abs(dynamic_round(Decimal(wedge.theta2) - Decimal(wedge.theta1))),
28+
angle=abs(
29+
dynamic_round(
30+
Decimal(float(wedge.theta2)) - Decimal(float(wedge.theta1))
31+
)
32+
),
2933
radius=wedge.r,
3034
)
3135

0 commit comments

Comments
 (0)