How to Get Interactive Plots Again in Spyder/Ipython/Matplotlib

Interactive plots inside Spyder ipython console

(Spyder maintainer here) No, unfortunately that's not possible.

In Spyder, plot using Matplotlib with interactive zoom, etc

Select from the menu Tools > Preferences, then IPython console in the list of categories on the left, then the tab Graphics at the top, and change the Graphics backend from Inline to e.g. Qt.

For me though, the figures then always pop up in the background.

(I use Spyder 3.0.0dev bundled with WinPython 3.4.)

Interactive(?) plotting in Spyder with matplotlib

The run configuration should be set to Execute in current Python or IPython interpreter which by default allows for interactive plotting. If the interpreter is set to Execute in a new dedicated Python interpreter then Interact with the Python interpreter after execution must be selected.

How to plot in a new window in Spyder-IDE(Python)

You need to go to the menu

Tools > Preferences > IPython console > Graphics > Graphics Backend

and select the option called Automatic there.

After doing that you need to restart either Spyder or the console kernel for this change to take effect.

Spyder console turn off interactive matplotlib plotting

Figures should not be popping up if you use a non-interactive backend. Put this at the very beginning of the script:

import matplotlib as mpl
mpl.use('Agg')

You might run into memory issues anyway if you create many figures without closing them.



Related Topics



Leave a reply



Submit