Skip to content

Commit 198ebb9

Browse files
weiji14seisman
andauthored
Add IPython to GMT Legacy Tests CI environment (#2283)
Co-authored-by: Dongdong Tian <[email protected]>
1 parent 6072b00 commit 198ebb9

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
lines changed

.github/workflows/ci_tests_legacy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ jobs:
6565
- name: Install dependencies
6666
run: |
6767
mamba install gmt=${{ matrix.gmt_version }} numpy \
68-
pandas xarray netCDF4 packaging geopandas \
68+
pandas xarray netCDF4 packaging \
69+
geopandas ipython \
6970
build dvc make 'pytest>=6.0' \
7071
pytest-cov pytest-doctestplus pytest-mpl sphinx-gallery
7172

pygmt/src/coast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def coast(self, **kwargs):
202202
... )
203203
>>> # Show the plot
204204
>>> fig.show()
205+
<IPython.core.display.Image object>
205206
"""
206207
kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access
207208
if not args_in_kwargs(args=["C", "G", "S", "I", "N", "E", "Q", "W"], kwargs=kwargs):

pygmt/src/grd2cpt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def grd2cpt(grid, **kwargs):
175175
>>> fig.grdimage(grid=grid)
176176
>>> # show the plot
177177
>>> fig.show()
178+
<IPython.core.display.Image object>
178179
"""
179180
if kwargs.get("W") is not None and kwargs.get("Ww") is not None:
180181
raise GMTInvalidInput("Set only categorical or cyclic to True, not both.")

pygmt/src/grdcontour.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def grdcontour(self, grid, **kwargs):
122122
... )
123123
>>> # show the plot
124124
>>> fig.show()
125+
<IPython.core.display.Image object>
125126
"""
126127
kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access
127128
with Session() as lib:

pygmt/src/grdimage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def grdimage(self, grid, **kwargs):
173173
>>> fig.grdimage(grid=grid, cmap="geo", projection="W10c", frame="ag")
174174
>>> # show the plot
175175
>>> fig.show()
176+
<IPython.core.display.Image object>
176177
"""
177178
kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access
178179
with Session() as lib:

pygmt/src/solar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def solar(self, terminator="d", terminator_datetime=None, **kwargs):
8989
... )
9090
>>> # show the plot
9191
>>> fig.show()
92+
<IPython.core.display.Image object>
9293
"""
9394

9495
kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access

0 commit comments

Comments
 (0)