import urllib2
from IPython.display import HTML
iframe = ''
openlayers_ex = 'https://raw.github.com/pfctdayelise/dapbook/master/example-openlayers.html'
html = urllib2.urlopen(openlayers_ex).read()
HTML(iframe.format(html.encode('base64')))
leaflet_ex = 'https://raw.github.com/pfctdayelise/dapbook/master/example-leaflet.html'
html = urllib2.urlopen(leaflet_ex).read()
HTML(iframe.format(html.encode('base64')))