from matplotlib.pyplot import figure, imshow, axis
from matplotlib.image import imread

def showImagesHorizontally(list_of_files):
    fig = figure()
number_of_files = len(list_of_files)
for i in range(number_of_files):
    a = fig.add_subplot(1, number_of_files, i + 1)
image = imread(list_of_files[i])
imshow(image, cmap='Greys_r')
axis('off')
How to display images in a row with IPython display?