-
Notifications
You must be signed in to change notification settings - Fork 4.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
Automatically set a backend if no default backend is configured for matplotlib #4086
Comments
might also make sense to add a |
I think the This issue should be fixed as stated in the SO post using
|
Even better would be to check if a backend is set and only set one if none is set. |
@JEM-Mosig Are you working on this? |
Argh... its on my ToDo list, but has low priority. |
Can someone reproduce this issue on the latest matplotlib? I think the referred stackoverflow issue is not present anymore on newer matplotlib + OSX versions. Also I am not sure doing:
is the best way to go about this because it would fail in headless environments (ex: docker) where tk is not installed. In fact I can't run the tests on a new ubuntu install because of this reason but I guess that's a different issue. I would recommend not establishing a hard dependency on matplotlib with a reasoning similar to scikit-optimize/scikit-optimize#637 (comment):
Update: Created a new issue for the matplotlib dependency issue here. |
@elyase Does it work if you have these lines
|
After implementing the change, I've double checked the behaviour with following setups:
For a situation when default backend is not set, we will manually try to use TkAgg or Agg. |
Description of Problem:
On Mac OS X, when running
testing fails because of an issue with
matplotlib
, iffmatplotlib
has not been used before. In particular, on Mac OS X,matplotlib
requires a different backend setting, and presently it does not find that setting by itself. The issue is explained on stack overflow.Overview of the Solution:
It would be convenient if rasa would recognise the problem and point the user to the solution. Alternatively, rasa could even create the necessary settings for
matplotlib
after prompting the user.Definition of Done:
matplotlib
settings file on a Mac OS X device and running the code abovebackend: TkAgg
line in thematplotlibrc
file (see SE answer) on a Mac OS X device and running the code aboveThe text was updated successfully, but these errors were encountered: