Error when returning Image objects

Hi! Thanks for help in advance.

In my Jupyter Notebook there is function returning two images.
Lets say suppose my function is “boomer” which returns two images as ‘a’ and ‘b’

m,n=anvil.server.call('boomer')
I expect that ‘a’ will be stored in m and ‘b’ in n.
This gave me error " TypeError: ‘BlobMedia’ object is not itterable."

For solving this error I used
m,n=anvil.server.call('boomer') .get_bytes()
This gave me error " ValueError: too many values to unpack"

I also tried
m,n=Image(source=anvil.server.call('boomer'))
This gave me error “TypeError: ‘Image’ object is not iterable”.

Kindly let me know a code to receive multiple images from function called in anvil and to display the received images on interface.

Hello and welcome,

Please format your code by wrapping it in backtics as follows:

```python
This will be nicely formated
```

I suspect that your server function should be returning a list of media objects so that it can be unpacked properly. Try printing the type of the value returned from the server function to investigate.

Will please specify how exactly should I create list of media objects and how it should be unpacked it?