Description of changes:
We were setting the matplotlib backend because GPy is imported by xfer.__init__() and it imports matplotlib which will fail on OSX if the backend is not set. This is undesirable behaviour because we are silently overwriting the user's backend.
To get around this, we are importing GPy inside the functions where it is required to avoid importing it inside the __init__. If a user wants to set their backend they can but it's not required unless the GpRepurposer is used.
In order for TravisCI builds to complete we added a command to create a matplotlib config file that sets the backend.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available:
Description of changes: We were setting the matplotlib backend because GPy is imported by
xfer.__init__()
and it imports matplotlib which will fail on OSX if the backend is not set. This is undesirable behaviour because we are silently overwriting the user's backend.To get around this, we are importing GPy inside the functions where it is required to avoid importing it inside the
__init__
. If a user wants to set their backend they can but it's not required unless theGpRepurposer
is used.In order for TravisCI builds to complete we added a command to create a matplotlib config file that sets the backend.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.