mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 11:32:39 +02:00
Update __init__.py
This commit is contained in:
parent
5e5dc0eac5
commit
d876847d69
1 changed files with 2 additions and 1 deletions
|
|
@ -2,10 +2,11 @@
|
||||||
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
import matplotlib
|
||||||
from . import matplot_dep
|
from . import matplot_dep
|
||||||
except (ImportError, NameError):
|
except (ImportError, NameError):
|
||||||
# Matplotlib not available
|
# Matplotlib not available
|
||||||
import warnings
|
import warnings
|
||||||
warnings.warn(ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting"))
|
warnings.warn(ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting"))
|
||||||
#sys.modules['matplotlib'] =
|
#sys.modules['matplotlib'] =
|
||||||
#sys.modules[__name__+'.matplot_dep'] = ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting")
|
#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