Geopandas: QST: descartes dependency

Created on 15 Oct 2020  路  4Comments  路  Source: geopandas/geopandas

I have a question about the descartes dependency and I wonder if this has something to do with geopandas pypi metadata.

Whenever I use an online jupyter env like colab or something. I have to pip install descartes after pip install geopandas.
Does this mean descartes is not included in the geopandas dependency metadata? If so, should it be added it to lile fiona, shapely, etc?

question

Most helpful comment

I don't think we will add matplotlib as a required dependency any time soon (note that also pandas does not have that as a required dependency), but the actual annoying thing is not having to install matplotlib separately (which many people will have installed anyway), but having to install descartes. And for that we are actually thinking to simply include the code of descartes into geopandas itself, see https://github.com/geopandas/geopandas/issues/1039

All 4 comments

Descartes and matplotlib are optional dependencies. There are folks who do not use geopandas for plotting and we do now want to force them to install it. However, there was a discussion that this may change in future. We may have geopandas-base with the very minimum and geopandas which should then come with some optional dependencies as well.

@martinfleis I wish you guys add it to the requirement in the further since geopandas is a high-level package.

I don't think we will add matplotlib as a required dependency any time soon (note that also pandas does not have that as a required dependency), but the actual annoying thing is not having to install matplotlib separately (which many people will have installed anyway), but having to install descartes. And for that we are actually thinking to simply include the code of descartes into geopandas itself, see https://github.com/geopandas/geopandas/issues/1039

The mentioned removal of descartes as an optional dependency has been done now (https://github.com/geopandas/geopandas/pull/1677), so closing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

linwoodc3 picture linwoodc3  路  4Comments

J4nJ4nsen picture J4nJ4nsen  路  3Comments

dzanaga picture dzanaga  路  3Comments

fmaussion picture fmaussion  路  6Comments

ResidentMario picture ResidentMario  路  6Comments