In [4]:
import urllib2
from IPython.display import HTML

iframe = '<iframe src="data:text/html;base64,{}" width="850" height="650"></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')))
Out[4]:
In [5]:
leaflet_ex = 'https://raw.github.com/pfctdayelise/dapbook/master/example-leaflet.html'
html = urllib2.urlopen(leaflet_ex).read()
HTML(iframe.format(html.encode('base64')))
Out[5]: