Question: I've developed a few phonegap apps for ios and now I want to create android versions for one of them. The thing with android is, of course, that it is used on so many different devices. I understand that the safest way is to test the app on every single device that I'm targeting, but is there a smart and easy solution to test for as many devices as possible without buying 20 new phones? Is the emulator, for example, reliable? 

Any hints and tips from you android phonegap guys and girls out there much appreciated!

Answer: 
If you are using the pylab extension, you could convert the image to a numpy array and use matplotlib's imshow.

```
%pylab # only if not started with the --pylab option
imshow(array(pil_im))

```

EDIT:
As mentioned in the comments, the pylab module is deprecated, so use the matplotlib magic instead and import the function explicitly:

```
%matplotlib
from matplotlib.pyplot import imshow 
imshow(array(pil_im))

```
Just use

```
from IPython.display import Image 
Image('image.png')

```