MarkTechPost AI產業與商業

Reflex 開源 XY:以 Rust 為核心的超高速 Python 繪圖庫,讓一億點圖表保持互動

2026年8月4日 08:57

重點摘要

Reflex AI 發布了 XY,這是一個採用 Apache-2.0 授權的 Python 繪圖庫,用於互動式 2D 視覺化。多數 Python 繪圖技術棧會為每一列建立一個可繪製物件,因此當資料點超過數十萬時,渲染、懸停和縮放效能就會下降。XY 將工作轉移到原生 Rust 核心,以型別化二進位緩衝區取代 JSON 傳送至瀏覽器,並使用 WebGL2 進行繪製。根據基準測試,XY 在 10,000 個資料點時維持 0.071 秒的效能,在 1 億個資料點時為 0.081 秒。它可透過 pip install xy 安裝,且需 Python 3.11 或更新版本。XY 目前為早期 alpha 版本(0.0.1),部署範圍明確。新創公司和中型資料團隊可立即採用它進行內部分析、筆記本和可分享的成果。受監管企業則需謹慎評估。

站內 AI 整理稿

Reflex AI has released XY, an Apache-2.0 Python charting library for interactive 2D visualization.Most Python charting stacks create one drawable object per row, so past a few hundred thousand points, render, hover, and zoom degrade.

XY moves the work into a native Rust core, sends the browser typed binary buffers instead of JSON, and draws with WebGL2.In the terms of the benchmark, XY holds 0.071 s at 10,000 points and 0.081 s at 100 million.It ships as pip install xy and requires Python 3.11 or newer.

Is it deployable XY is early alpha at version 0.0.1.It ships as pip install xy and requires Python 3.11 or newer.That maps to a clear deployment envelope.Startups and mid-size data teams can adopt it now for internal analytics, notebooks, and shareable artifacts.

Regulated enterprises should pilot it rather than put it on a customer-facing critical path.

Fit is strongest where row counts are the actual bottleneck: quantitative finance (tick data), genomics and bioinformatics (Manhattan plots, allele-frequency scans), observability and telemetry, astronomy, and geospatial analytics.Here is how to install it in 1 line.

Copy CodeCopiedUse a different Browserpip install xy Explainer (function(){ window.addEventListener("message", function(e){ if(e.data && e.data.mtpHeight){ var f = document.getElementById("mtp-xy-frame"); if(f) f.style.height = e.data.

mtpHeight + "px"; } }); })(); How the representation ladder works XY keeps canonical f64 columns in a ColumnStore in Python and picks a rendered representation per trace.Current defaults start M4 decimation above 10,000 rows for long ordered lines, and automatic scatter density above 200,000 points.

Density grids default to 512×384 cells.The docs are explicit that these are pre-1.0 policy thresholds, not API guarantees.Because exact values stay in Python, hover, selection, and pick() still resolve original rows when the active tier has an exact mapping.

Zooming into a narrow window returns exact visible points for a padded aligned window, and nearby pans render from that cached window without another request.

Reflex is careful not to overclaim here: density is natively binned and GPU-rendered, not an all-GPU ingest pipeline, and ingest, binning, and decimation still scale with source row count.

Performance The benchmark drives every library through a real browser and stops the clock only when the canvas is verified correct and stable across 10 byte-identical frames.Measurements come from one Apple M5 Pro, one run per cell.PointsXYMatplotlib (WebAgg)Plotly (scattergl)1M0.084 s0.357 s0.

614 s10M0.083 s2.804 s3.367 s50M0.076 s13.385 s✕100M0.081 s✕✕ That is a stated 34× speedup at 10M and 177× at 50M.Peak Python-side memory at 10M is 0.32 GiB for XY against 0.84 GiB for Matplotlib and 1.86 GiB for Plotly.With density=False, XY still draws 100M exact markers in 1.343 s on 5.26 GiB.

Reflex also reports rendering the full OpenStreetMap dataset — 10 billion points.A 10-million-point interactive scatter exports to 258 KiB of HTML, versus a stated 259 MiB for the Plotly equivalent.The payload stays near 258 KiB from 1M through 100M rows.

API surface and integration Charts are composed declaratively from marks, axes, legends, tooltips, and annotations.Fourteen chart families ship today, including scatter, line, area, histogram, box, violin, ECDF, heatmap, hexbin, and contour.

Styling accepts CSS and Tailwind classes through stable DOM slots.For migration, import xy.pyplot as plt runs common Matplotlib pyplot code, though the compatibility guide notes not everything is supported.

A separate reflex-xy adapter turns any chart into a Reflex component with no JavaScript or iframe.Key Takeaways XY holds ~0.08 s render time from 10k to 100M points by drawing screen-bounded representations, not per-row markers.

Rust core plus binary transport cuts a 10M-point interactive export to 258 KiB against Plotly’s 259 MiB.Exact f64 columns stay in Python, so hover, selection, and zoom drilldown still return original rows.Deployable today for notebooks, internal dashboards, and shareable HTML; version 0.0.

1 alpha argues against critical paths.Best fit is finance, genomics, telemetry, and astronomy, where sampling before plotting is the current default.Check out the GitHub Repo and Technical details.

Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!are you on telegram?now you can join us on telegram as well.Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?

Connect with us The post Reflex Open Sources XY: A Rust-Backed Super-Fast Python Charting Library That Keeps 100 Million Point Charts Interactive appeared first on MarkTechPost.

Related

相關文章

一年砸下110億美元,比紅杉還兇,白宮才是AI圈最猛投資人

美國白宮過去一年在AI領域投入110億美元,規模超越紅杉資本等傳統創投,顯示政府正以國家級資源全面押注AI產業。這筆資金分散於多個聯邦機構,涵蓋基礎模型訓練、醫療及氣候應用等關鍵環節,並強調負責任AI開發。此舉反映美國對維持全球AI領導地位的危機感,但也引發市場機制扭曲與技術商業化延緩的疑慮。

剛剛

一口氣發佈三款教育插件,OpenAI教育產品再升級

OpenAI 推出三款教育插件,分別為課程助手、作業輔導員與互動學習夥伴,旨在協助教師備課與學生自主學習。這些工具整合至教育版平台,強調引導式學習而非直接給答案,並內建防護機制避免學生過度依賴。OpenAI 計畫未來加強多語言支援與特殊教育需求,持續深化教育科技布局。

剛剛

騰訊、字節、阿里,搶著給打工人配「AI助理」

騰訊、字節跳動與阿里巴巴三大中國科技巨頭,近期紛紛推出或升級企業級AI助理,目標是提升白領工作效率。各家AI助理的競爭重點從回答問題轉向執行任務,並分別強調跨應用串聯、主動式智慧與企業級安全等不同特色。儘管面臨資料隱私與AI幻覺等挑戰,但市場調查顯示超過六成中國企業計劃在一年內導入AI辦公工具。

剛剛

推行AI提效後,策劃們開始加班趕工期

當AI開始重寫小遊戲生產流程,真正的變化何時發生?這個問題在近期引發了業界廣泛討論。隨著人工智慧技術逐步滲透進創意與策劃領域,許多公司開始導入AI工具來提升工作效率,然而實際情況卻與預期有所出入。部分策劃人員反映,在推行AI提效後,他們不僅沒有減少工作量,反而因為系統調整與流程磨合,導致加班趕工期的現象頻繁出現。 這場變革的起點,源自於企業對AI生產力的高度期待。許多遊戲開發與內容製作公司,尤其是中小型團隊,紛紛導入AI輔助工具,試圖透過自動化生成文案、腳本、美術素材甚至程式碼,來縮短專案週期。

剛剛

DeepSeek大漲價,Token價格戰終於要結束了?

DeepSeek大幅調漲API服務價格,引發市場對AI模型價格戰是否結束的討論。業界分析指出,漲價反映營運成本壓力與市場定位調整,可能代表中國AI產業從低價競爭轉向追求盈利與可持續發展。未來競爭焦點將從價格轉向模型效果與生態系統完整性,但漲價能否終結價格戰仍取決於市場供需與競爭對手反應。

剛剛

狂攬130億!英偉達投的AI基建獨角獸又融資了

澳洲AI基礎設施獨角獸Firmus宣布完成20億美元(約136億人民幣)戰略股權融資,現有投資方英偉達與Coatue持續參投,並新增黑石旗下基金及Jane Street。該公司專注於設計、建設及營運AI工廠,核心產品HyperCube整合供電、液冷與伺服器機架,並提供GPU雲端算力服務。英偉達透過股權投資與技術合作,協助Firmus擴張亞太地區AI數據中心,同時擴大其晶片與計算架構的市場覆蓋。

剛剛