python - Unable to plot worldmap with Vincent in iPython notebook -


this question related unable plot vincent in ipython , although think it's not same problem.

i can plot bar chart using vincent 0.4.4 in ipython 0.13.1 notebook in following example (found in docs):

import vincent vincent.core.initialize_notebook()  bar = vincent.bar(multi_iter1['y1']) bar.axis_titles(x='index', y='value') bar.display() 

however, i'm unable same thing worldmap representation in data mapping example:

import vincent geo_data = [{'name': 'countries',              'url': world_topo,              'feature': 'world-countries'}]  vis = vincent.map(geo_data=geo_data, scale=200) vis.to_json('vega.json') 

i've replaced value 'world_topo' path topojson file (world-countries.topo.json) downloaded here.

no errors shown , nothing happens. i'm not using https, way. simplest map chart example, guess should work smoothly...

any ideas?

following webpage of vincent ipython version of >= 1.0 required, thus, upgrade more recent version (e.g. ipython 2.1) solve problem. on ubuntu machine map plot of vega works nicely.

moreover, required call vis.display() method after setup of plots, shown in e.g. this example notebook.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -