plotly / plotly/plotly.py

new update affects px.scatter() logging in wandb

未关闭
#5,138 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug P2 regression
主要语言
Python
星标
18.8k
派生
2.8k
平均合并
16 小时 26 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 wandb==0.19.8、plotly==6.0.1 和 pandas==2.2.3 运行提供的复现程序,重点关注带有 hover_data 的 px.scatter 图表。跟踪 wandb.log 接收该图表时使用的序列化过程,并将其与 Plotly 更新前的行为进行比较。当带有 hover 功能的散点图再次成功记录时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
pandas, python
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。