Skip to content

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

Open

Description

@mrunalimanj

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

Activity

  1. added
    bugsomething broken
    P2considered for next cycle
    on Apr 14, 2025
  2. emilykl commented on Sep 2, 2026

    @emilykl
    Contributor

    Hi @mrunalimanj, apologies for the very belated follow-up. I suspect this was caused by the switch to use base64-encoded typed arrays in plotly.py and plotly.js (#4470).

    I'm curious whether this was ever resolved on the wandb side or whether it's still an issue.

    Related: #5676

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokenregressionthis used to work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions