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
sphinxext pot_directive: more robust backend switching #5039
sphinxext pot_directive: more robust backend switching #5039
Conversation
not work by falling back to `plt.switch_backend("Agg")`
I think the warning is due to an internal change in Matplotlib, I believe we are seeing similar warnings in the building of the examples in our own docs. |
Well, then your docs build can only succeed because it had |
That shouldn't happen (the windows popping up). IIRC, everything is On Wed, Sep 9, 2015 at 11:39 AM, Tobias Megies notifications@github.com
|
Intended to test a few more combinations of versions, but recently |
…backend sphinxext pot_directive: more robust backend switching
…backend sphinxext pot_directive: more robust backend switching
backported as b34682c |
I've run into a problem with sphinxext plot_directive during a sphinx build, namely that
matplotlib.use("Agg")
was showing that warning and not being able to switch the backend. I didn't succeed in debugging where matplotlib was imported before it in the stack (it used to work for our documentation beforehand with the same build routine), but the proposed dynamic fallback toplt.switch_backend()
worked like a charm for me.