Skip to content

Preserve numeric contour arrays through Plotly serialization - #5278

Open
saitcakmak wants to merge 1 commit into
facebook:mainfrom
saitcakmak:export-D116474354
Open

Preserve numeric contour arrays through Plotly serialization#5278
saitcakmak wants to merge 1 commit into
facebook:mainfrom
saitcakmak:export-D116474354

Conversation

@saitcakmak

Copy link
Copy Markdown
Contributor

Summary: Convert the contour trace x, y, and z values to plain Python lists before Plotly serialization. This prevents Plotly 6 from preserving NumPy-backed values as base64 typed-array dictionaries when PlotlyAnalysisCard.get_figure() reconstructs the figure.

Differential Revision: D116474354

Summary: Convert the contour trace `x`, `y`, and `z` values to plain Python lists before Plotly serialization. This prevents Plotly 6 from preserving NumPy-backed values as base64 typed-array dictionaries when `PlotlyAnalysisCard.get_figure()` reconstructs the figure.

Differential Revision: D116474354
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 18, 2026
@meta-codesync

meta-codesync Bot commented Aug 18, 2026

Copy link
Copy Markdown

@saitcakmak has exported this pull request. If you are a Meta employee, you can view the originating Diff in D116474354.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.58%. Comparing base (e2d35a4) to head (519eb49).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5278   +/-   ##
=======================================
  Coverage   96.58%   96.58%           
=======================================
  Files         621      621           
  Lines       70852    70867   +15     
=======================================
+ Hits        68434    68449   +15     
  Misses       2418     2418           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Aug 18, 2026
…k#5278)

Summary:

Convert the contour trace `x`, `y`, and `z` values to plain Python lists before Plotly serialization. This prevents Plotly 6 from preserving NumPy-backed values as base64 typed-array dictionaries when `PlotlyAnalysisCard.get_figure()` reconstructs the figure.

Fixes OSS CI failures caused by the previous diff. These didn't surface in internal infra due to different plotly versions used.

Differential Revision: D116474354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants