Skip to content

new update affects px.scatter() logging in wandb #5138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrunalimanj opened this issue Apr 11, 2025 · 0 comments
Open

new update affects px.scatter() logging in wandb #5138

mrunalimanj opened this issue Apr 11, 2025 · 0 comments
Labels
bug something broken P2 considered for next cycle regression this used to work

Comments

@mrunalimanj
Copy link

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

@gvwilson gvwilson added bug something broken P2 considered for next cycle regression this used to work labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle regression this used to work
Projects
None yet
Development

No branches or pull requests

2 participants