From d876847d69d6333c4117bb1c32a53b6190d8ed68 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sat, 12 Sep 2015 14:21:29 +0100 Subject: [PATCH] Update __init__.py --- GPy/plotting/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPy/plotting/__init__.py b/GPy/plotting/__init__.py index 7172543d..d89369ad 100644 --- a/GPy/plotting/__init__.py +++ b/GPy/plotting/__init__.py @@ -2,10 +2,11 @@ # Licensed under the BSD 3-clause license (see LICENSE.txt) try: + import matplotlib from . import matplot_dep except (ImportError, NameError): # 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") \ No newline at end of file + #sys.modules[__name__+'.matplot_dep'] = ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting")