In [1]:
from IPython.core.display import HTML, Javascript

In [2]:
# load the Google Maps API library
# TO DO:  make it easy to add API key

def gmap_init():
    js = """
window.gmap_initialize = function() {};
$.getScript('https://maps.googleapis.com/maps/api/js?v=3&sensor=false&callback=gmap_initialize');
"""
    return Javascript(data=js)

gmap_init()


Out[2]:

In [3]:
%%html
<style type="text/css">
  .map-canvas { height: 300px; }
</style