new update affects px.scatter() logging in wandb
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Führe den bereitgestellten Reproducer mit wandb==0.19.8, plotly==6.0.1 und pandas==2.2.3 aus und konzentriere dich auf die px.scatter-Abbildung mit hover_data. Verfolge die beim Empfang der Abbildung durch wandb.log verwendete Serialisierung und vergleiche sie mit dem Verhalten vor der Plotly-Aktualisierung. Als erledigt gilt die Aufgabe, wenn Scatterplots mit Hover-Funktionen wieder erfolgreich protokolliert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- pandas, python
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 65/100