geohackweek / vector

Vector Tutorial
https://geohackweek.github.io/vector/
Other
10 stars 5 forks source link

New tools (toys?) to consider incorporating for this year #7

Open emiliom opened 7 years ago

emiliom commented 7 years ago

Updated: 2017-9-19

lsetiawan commented 7 years ago

Geoplot

I have ran into my first issue for Geoplot due to the release of Geopandas. Seems like it is dependant on an older version of Geopandas. When I try importing import geoplot as gplt I get ImportError:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-10-ef1162e9a1a5> in <module>()
     15 import geopandas as gpd
     16 from geopandas import (GeoSeries, GeoDataFrame)
---> 17 import geoplot as gplt
     18 
     19 data_pth = "../data"

//anaconda/envs/workenv/lib/python3.6/site-packages/geoplot/__init__.py in <module>()
      7 # from .utils import (gaussian_points, classify_clusters, gaussian_polygons, gaussian_multi_polygons,
      8 #                     uniform_random_global_points, uniform_random_global_network)
----> 9 from .geoplot import *
     10 from .quad import *
     11 from .crs import *

//anaconda/envs/workenv/lib/python3.6/site-packages/geoplot/geoplot.py in <module>()
      4 
      5 import geopandas as gpd
----> 6 from geopandas.plotting import __pysal_choro, norm_cmap
      7 import matplotlib.pyplot as plt
      8 import matplotlib as mpl

ImportError: cannot import name 'norm_cmap'
emiliom commented 7 years ago

Thanks for testing geoplot. Let's skip it, then. We don't have time to deal with issues involving GeoPandas compatibility. If I have time I may mention geoplot in the tutorial, but not use it directly.

emiliom commented 6 years ago

Note to self: The import geoplot statement is no longer a problem, with the current conda environment.