Add BytesIO support
還沒有人認領這個 Issue。
評估
研究方向
首先閱讀 calc_fig() 的實作和 docstring(即 issue 中指定的進入點),並追蹤目前影像輸出是如何回傳或寫入的。在修改之前,釐清預期的 BytesIO 介面和並行行為;當呼叫端可以在不寫入檔案的情況下取得記憶體中的影像資料,且文件所描述的行為正確時,即視為完成。
由索引模型根據 Issue 內容生成。
描述
What I'm saying is that I used to do this
img_bytes = pio.to_image(fig, format="svg", width=width, height=height)and now I have to do the following, where
kis an instance ofKaleido:img_bytes = await k.calc_fig( fig, opts={"format": "svg", "width": width, "height": height}, )I'm not trying to write the images to a file.
I'm not sure whether the docstring for
calc_fig(), claiming "this function does not support parallelism", is accurate.
Originally posted by @s-banach in #231
- 主要語言
- Python
- 星號
- 504
- 分支
- 65
- 平均合併
- 6 天 9 小時
- 30 天內合併 PR
- 2
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/kaleido 的其他 Issue
-
Writing to an existing directory whose name has a dot fails with "Invalid format"可能已有人在做 @RaphaelFakhri 於 17 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 35/100
-
Deterministic Rendering Challenges可能重新可做 @camdecoster 於 72 天前認領,目前沒有進行中的 PR。 未關閉enhancement feature P2 size: 5
-
[FEATURE]: Embed custom fonts into vector exports (no system install)可能已有人在做 @camdecoster 於 129 天前認領。 未關閉enhancement P3 size: 3
-
enhancement feature P3 size: 5
難度 5/5 一週以上 新手友好度 25/100
-
GlobalKaleidoServer is not thread-safe可能已有人在做 @talleibman 於 254 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 48/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 91/100
marimo-team/marimo#11768 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
btclib-org/btclib-node#2358 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
-
難度 2/5 1-3 小時 新手友好度 87/100
維護者通常 7 天內回覆
-
good first issue
難度 2/5 1-3 小時 新手友好度 78/100
MTSWebServices/RecTools#330 ·