How to export display.Javascript(jscript) object to an image on desktop
<p>In iPython, I have a googleAPI heatmap that was generated from javascript that looks up geodata from a Twitter stream:</p>

<pre><code>    html_template = '&lt;div id="%s" style="width: 500px; height: 300px"&gt;&lt;/div&gt;'
    #This is to make sure the JS gets loaded before we try to load the maps

    time.sleep(1) 


    key = 'geo_english'

    jscript = gen_javascript(key, N=400)

    display.HTML(html_template % key)

    display.Javascript(jscript)
</code></pre>

<p>A nice heatmap is produced. I'm not sure how to save the display object to a file. 
How can I get this heatmap to be exported to a png file?</p>