IPython console in Spyder IDE by default opens non-interactive Matplotlib plots in the same inline “notebook”.
To open up separate windows for interactive figures in Spyder go to Spyder menu and set:
Tools → Preferences → Ipython Console → Graphics → Graphics Backend → Backend: “automatic”
Popout interactive figures are much more useful in general because one can
- probe the figure data
- zoom/pan the figure
unlike the static PNGs in the inline Jupyter notebook.
Jupyter notebooks can also have interactive plots. Instead of static inline notebook plots with
for inline interactive plots in Jupyter:
Example code as below produces an interactive inline plot:
%matplotlib notebook from matplotlib.pyplot import figure ax = figure().gca() ax.plot(range(5))