I have experienced a changed behaviour using dash 2.18.2 and numpy 1.26.4.
Before, when creating a figure and returning it to a dcc.Graph from a callback, I could simply use my numpy arrays and pass it to x and y of the traces of the figure.
Because when loading the figure into a callback as state afterwards, x and y were simply python lists.
Now, BUT JUST WHEN RUNNING ON LINUX, the behaviour is different: When reading the figure into a callback after returning it to a dcc.Graph with numpy arrays, x and y will be dicts when accessing the traces of the figure and look like this:
{
dtype
bdata
_inputArray (the actual set of values that I originally passed to the x attribute of the trace)
}
This behaviour was very unexpected for me and has caused exceptions in my app, because I expected x and y to be lists when reading a figure as state and working with it. It is still like this on Windows. Now I have to cast my numpy arrays to lists before passing it to x and y of the traces before I return the figure from the callback.
Is this new behaviour intentional or is it a bug?
Thanks in advance