mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
[plotting] no printing of warning unless you actually use plotting
This commit is contained in:
parent
c1a2f7e556
commit
6a5c2ea164
2 changed files with 5 additions and 2 deletions
|
|
@ -4,4 +4,8 @@
|
|||
try:
|
||||
from . import matplot_dep
|
||||
except (ImportError, NameError):
|
||||
# Matplotlib not available
|
||||
# Matplotlib not available
|
||||
import warnings
|
||||
warnings.warn(ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting"))
|
||||
#sys.modules['matplotlib'] =
|
||||
#sys.modules[__name__+'.matplot_dep'] = ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting")
|
||||
Loading…
Add table
Add a link
Reference in a new issue