Closed bmorris3 closed 4 years ago
Upon further investigation it wasn't the plot directive, it was the code-block that executed the plot that was causing the problem. If I add
...
[testenv]
setenv = MPLBACKEND=agg
...
to my tox.ini
I can run the tests locally without getting a plot.
That is indeed the best way to solve that issue. Should we include it by default in the template?
My vote is yes! See #453.
I'm using the package template over here and running into a small problem when running
tox -e test
locally. When tox gets to the step:(i.e. test the docs), it actually displays one of the plots to the screen generated by the plot directive in the documentation. How can we suppress plots from being displayed to screen during local testing? Thanks!