Go Heatmap with Complex values

Does anyone know how to plot a heatmap with complex values. My attempt failed with the following message:

The callback for ‘[Output(‘heatmap.figure’)]’
returned a value having type tuple
which is not JSON serializable.

I’m not sure if it possible right now but if there’s a way around it, I would appreciate the help.