plotly / plotly/plotly.py

new update affects px.scatter() logging in wandb

オープン
#5,138 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P2 regression
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

hi,

I noticed that updating to plotly=6.0.1 breaks some of the wandb logging of scatterplots, at least those with hover features. I think this might have something to do with some change in the json encoding given by the plotly.io codebase.

minimum reproducing error:

import plotly.express as px
import pandas as pd
import wandb

table_ex = pd.DataFrame({"ax1": [0, 3, 4],
                         "ax2": [0, 3, 3],
                         "ax3": [0, 0.2, 0.4],
                        }
                       )

fig2 = px.scatter(table_ex, x="ax1", y ="ax2",  color="ax3", range_color=(0,1), hover_data=table_ex.columns)
fig2.update_traces(marker=dict(size=15))
fig2

run = wandb.init(project="test2")
wandb.log({"hi": fig2})
wandb.finish()

wandb==0.19.8, plotly==6.0.1, pandas==2.2.3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された再現プログラムを wandb==0.19.8、plotly==6.0.1、pandas==2.2.3 で実行し、hover_data を指定した px.scatter の figure に焦点を当てます。wandb.log が figure を受け取ったときに使用されるシリアライズを追跡し、Plotly の更新前の動作と比較します。hover 機能付きの散布図が再び正常にログ記録されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
pandas, python
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
65/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。