I am following this answer to bring plot windows to the front by choosing a different graphics backend:
Tools > Preferences > Ipython > Graphis > backend The options are Inline, Automatic, Qt5, and TKinter. I don't want Inline and I prefer more explicit control than Automatic. Both Qt5 and TKinter pulls the plot window to the front when it is first created, i.e., when the initial plot is done. Here is my test code for creating the plot, adapted from here:
from sklearn import datasets import matplotlib.pyplot as plt digits = datasets.load_digits() data = digits.data from sklearn.manifold import TSNE projection = TSNE().fit_transform(data) plot_kwds = {'alpha' : 0.5, 's' : 80, 'linewidths':1, 'edgecolors':"Blue", 'facecolors':"None"} plt.scatter(*projection.T, **plot_kwds) The problem is that if I re-issue the plt.scatter() command (say, with different plot_kwds options), the plot window does not get pulled to the front. I'm going through a quick cycle of re-plots, so it's not efficient to use the mouse to the plot window to the front.
Is there a command (or another way) to will bring the plot window to the front?