Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.7k
Open
Description
The FigureWidget seems to be broken in plotly 6.0 when showing datetime types.
Reproduced using the examplehere
importplotly.graph_objectsasgoimportpandasaspddf=pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv').assign(Date=lambdax:pd.to_datetime(x.Date))fig=go.Figure([go.Scatter(x=df['Date'],y=df['AAPL.High'])])fig.show()
displays correctly with datetime:

With FigureWidget:
importplotly.graph_objectsasgoimportpandasaspddf=pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv').assign(Date=lambdax:pd.to_datetime(x.Date))fig=go.FigureWidget([go.Scatter(x=df['Date'],y=df['AAPL.High'])])fig.show()
shows the nanosecond ints:

This was run in VSCode (1.100.2) and also jupyterlab/server (lab == 4.4.3, jupyter-server == 2.16.0)
Seems similar to#5101.