-
Notifications
You must be signed in to change notification settings - Fork 118
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
json datetime encode support #475
Comments
Do you have the code to reproduce this (something I can copy paste), because looking at https://github.com/jupyter/jupyter_client/blob/main/jupyter_client/jsonutil.py it seems that only datetime is supported in jupyter as well, not date. |
It turns out the root cause of this issue is that: the dtype of the date time column in the dataframe is object instead of a normal datetime type like datetime64[ns]. Once I convert the dtype to datetme64[ns] it works perfectly. |
Ok, so this probably also didn't work in Jupyter notebook/lab. I'm assuming this to be a user-error or an issue with plotly (for not doing the conversion). Thank you for the update. |
when I use plotly in solara, if axis contains
datetime
, the chart shows blank without data, and solara server complains:turns out the plotly chart object contains
datetime
which could not be handle by python standard json lib by default. and I could not find a way to provide my ownJSONEncoder
for solara to use.The text was updated successfully, but these errors were encountered: