holoviz / geoviews

Simple, concise geographical visualization in Python
http://geoviews.org
BSD 3-Clause "New" or "Revised" License
587 stars 75 forks source link

No plotting class for Polygons found #283

Closed MatCast closed 5 years ago

MatCast commented 5 years ago

When wanting to export a gv.Polygons plot to html the following error appears: No plotting class for Polygons found I am using:

geoviews                  1.5.1                      py_0    conda-forge
holoviews                 1.11.0                     py_0    conda-forge

And the following code to save the plot:

renderer = gv.renderer('bokeh')
g_map = gv.Polygons(gdf, vdims=['vdims], label='my_label')
renderer.save(g_map, 'map')
philippjfr commented 5 years ago

You will have to update to latest geoviews, at minimum 1.6.0 but preferably 1.6.1. Its available on the pyviz and conda-forge channels and pip.

philippjfr commented 5 years ago

With hv >=1.10.0 you will also be able to use the simpler hv.save function rather than going via the renderer.