Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@mrunalimanj

Description

@mrunalimanj
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cycleconsidered for next cyclebugsomething brokensomething brokenregressionthis used to workthis used to work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.