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: 
Use IPython display to render PIL images in a notebook.

```
from PIL import Image               # to load images
from IPython.display import display # to display images

pil_im = Image.open('path/to/image.jpg')
display(pil_im)

```
A cleaner Python3 version that use standard numpy, matplotlib and PIL. Merging the answer for opening from URL.

```
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np

pil_im = Image.open('image.jpg')
## Uncomment to open from URL
#import requests
#r = requests.get('https://www.vegvesen.no/public/webkamera/kamera?id=131206')
#pil_im = Image.open(BytesIO(r.content))
im_array = np.asarray(pil_im)
plt.imshow(im_array)
plt.show()

```