-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Plots are not displayed in the observation planning example on RTD #3600
Comments
Actually all the plots are missing... (in modeling too) |
The error is:
|
We should maybe try and set the backend in |
This is on readthedocs? Seems like a readthedocs bug, as their matplotlib should never be set to a GUI backend. (The conf.py solution is probably fine, though it would override anything a user may have set, such as preferring Mac OSX rendering to Agg rendering)... |
By the way the first warning in the docs build is:
I'll ask on #readthedocs (or whatever their IRC channel is) |
Issue opened: readthedocs/readthedocs.org#1195 |
Before you open an issue on RTD (too late already, I know) that might have something to do with this: astropy/astropy-helpers@8e17135 In that case it is setting the correct backend. But it might be doing things out of order. |
(And FWIW that change was tested against the docs build on Travis and didn't have any warnings. It might have something to do with the matplotlib version being used in the doc build.) |
Although, in my change it is calling |
[re-wrote this comment since it was confused before] @embray - there are several points here:
ccing @mdboom since he may have thoughts on this too. |
I don't know what other solution there is than what's there, since without it some package installs literally CANNOT proceed because of the matplotlib issue. I think it could be taken out of |
@embray - the actual problem in glue is this failure: https://travis-ci.org/glue-viz/glue/jobs/54781259 Which is that there is a warning emitted during the sphinx build (the matplotlib backend issue). This in turn is due to the fact that we list astropy_helpers's extensions in the following file: https://github.com/glue-viz/glue/blob/master/doc/conf.py then at the end of the file, we import something from glue, which in turn imports matplotlib.pyplot, setting the backend automatically (just because importing matplotlib.pyplot does, there is no |
I think the workaround is fine for now. After all, the thing in astropy_helpers itself is a workaround that is only needed until |
Plots in docs fixed :) RTD was setting the backend to TkAgg. And it sounds like the thing in astropy_helpers is temporary anyway, so closing this. |
The documentation of the observation planning example in coordinates used to include the plots (see the 1.0 version of the docs) but no longer does (see the 1.0.1 version or the latest version)
The text was updated successfully, but these errors were encountered: