From 7ad275ce8a81a0b6b61f3ae0c17090ce58f6b731 Mon Sep 17 00:00:00 2001 From: mellorjc Date: Thu, 19 Feb 2015 11:31:46 +0000 Subject: [PATCH] matplotlib interactive mode only in IPython have interactive mode only in IPython so that running scripts that plot from python behave like normal. --- GPy/plotting/matplot_dep/maps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GPy/plotting/matplot_dep/maps.py b/GPy/plotting/matplot_dep/maps.py index fcb03b38..eef72a6a 100644 --- a/GPy/plotting/matplot_dep/maps.py +++ b/GPy/plotting/matplot_dep/maps.py @@ -6,7 +6,11 @@ try: from matplotlib.patches import Polygon from matplotlib.collections import PatchCollection #from matplotlib import cm - pb.ion() + try: + __IPYTHON__ + pb.ion() + except: + pass except: pass import re