diff --git a/python/Magics/macro.py b/python/Magics/macro.py index 1d432b798..ddf53460f 100644 --- a/python/Magics/macro.py +++ b/python/Magics/macro.py @@ -590,15 +590,6 @@ def inspect(self): _MAGICS_LOCK = threading.Lock() - -try: - # This function only seems to be defined in a Jupyter notebook context. - get_ipython() - plot = _jplot -except Exception: - plot = _plot - - def _jplot(*args): from IPython.display import Image @@ -624,6 +615,16 @@ def _jplot(*args): return image +try: + # This function only seems to be defined in a Jupyter notebook context. + get_ipython() + plot = _jplot +except Exception: + plot = _plot + + + + def wmsstyles(data): context.set() try : diff --git a/src/visualisers/Akima760.cc b/src/visualisers/Akima760.cc index 349054ce2..ebaa50326 100644 --- a/src/visualisers/Akima760.cc +++ b/src/visualisers/Akima760.cc @@ -1266,9 +1266,7 @@ double Akima760::rgbi3p(double XI, double YI) const int INXI,INYI; // input point double ZI; // interpolated value - cout << XI << ", " << YI << endl; - if ( XI == 0 && YI > 97) - cout << "STOP" << endl; + // Locates the output point // It is not called anymore, but it is kept here // for test purpose