Closed seisman closed 2 weeks ago
Ping @GenericMappingTools/pygmt-maintainers
- ... (2) add a separate command:
mamba install ipython contextily geopandas rioxarray
to install the optional packages after creating the virtual environment.
Sure, we can add a tip admonition to show this, similar to how we're showing pip install pygmt[all]
here:
3. Some packages like GeoPandas/Shapely/PyArrow, are not directly used in PyGMT, but it's good to let users know that PyGMT supports them.
Maybe we could add a section under the Technical References page or somewhere else to mention these integrations? Some of these are hiding in old issues:
Examples of others around the Scientific Python Ecosystem:
Looking at the Installation Instructions, currently four optional dependencies are listed
Here are my thoughts:
Install the optional dependencies in the Installing GMT and other dependencies step to have a full-feature PyGMT. There are two options: (1) add optional dependencies when creating the virtual environment; (2) add a separate command:
mamba install ipython contextily geopandas rioxarray
to install the optional packages after creating the virtual environment.Are IPython and GeoPandas considered optional dependencies? (1) PyGMT supports GeoPandas objects as inputs but GeoPandas is not imported anywhere in the PyGMT source codes; (2) IPython is needed for embedding figures in Jupyter Notebooks, but as long as users are in a Notebook environment, IPython is always available since it's a dependency of Jupyter.
Some packages like GeoPandas/Shapely/PyArrow, are not directly used in PyGMT, but it's good to let users know that PyGMT supports them.