-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyGMT figures are not being showed in the latest docs #473
Comments
Ah yes, I recently came across this and forgot to fix it here. The problem is that PyGMT tries to guess if we're in a notebook and sets the display of images only if it things we're in one. But since we set the external display to off when running the gallery, it turned off all displays. This is the offending line https://github.com/GenericMappingTools/pygmt/blob/main/pygmt/figure.py#L47 |
I was adding a hidden cell that sets this globally for each page. But this deserves a fix in PyGMT. |
Page that contains the error or needs to be improved (paste link):
The PyGMT figures we generate while building the docs are not being correctly added to the
dev
versions of the Harmonica docs.For example, compare the Gravity Disturbance page in:
I suspect the issue might come from a combination of PyGMT and jupyter-sphinx.
The text was updated successfully, but these errors were encountered: