Skip to content

Commit 5ca84df

Browse files
authored
Fix the error message when IPython is not available (#701)
When IPython is not available, `fig.show()` reports an error: ``` Cannot find IPython. Make sure you have it installed or use 'external=True' to open in an external viewer. ``` The error message is out-of-date. Instead, it should report: ``` Cannot find IPython. Make sure you have it installed or use 'method="external"' to open in an external viewer. ```
1 parent 3fb3d7a commit 5ca84df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def show(self, dpi=300, width=500, method="static"):
286286
[
287287
"Cannot find IPython.",
288288
"Make sure you have it installed",
289-
"or use 'external=True' to open in an external viewer.",
289+
"or use 'method=\"external\"' to open in an external viewer.",
290290
]
291291
)
292292
)

0 commit comments

Comments
 (0)