Displaying and updating images in dash app

I have set of filters based on which i get a list of images.
How can display them in a grid and then update the images it when a filter is changed?

See https://github.com/plotly/dash/issues/71 for an example.

Thanks @chriddyp The one using base64 was really useful and simple.
However just for my understanding, why would one prefer the app route method over the base64 encoding one?

Either method works, I don’t think that there are inherit advantages or disadvantages to either of them.

Hi @chriddyp, is there an easy way to resize the image to fit the div? I have tried couple ways with CSS files but failed to do so. Please advise if you have any successful example. Thanks.