What I’m trying to do:
I am trying to receive the Matplotlib object in anvil UI. And I getting the following error -
anvil.server.SerializationError: Cannot serialize return value from function. Cannot serialize <class ‘module’> object at msg[‘response’][0]
If you check out the source code for this example you’ll see that anvil provides a module to convert the matplot plot to a media object which you can then return and display in an image component.