I just installed a python 3.6 kernel for my Jupyter notebook. In the past, with python 2.7, I was able to look at interactive plots in a separate window (i.e., not embedded below a cell in the notebook) by simply using the following.
import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,6])
plt.show()
But now if I use this same code in the python 3.6 kernel, it appears just as if I had used
%matplotlib inline
in python 2.7: it's embedded in the notebook below the plt.show() command.
Can someone tell me how to use interactive plots in a python 3 Jupyter kernel?
UPDATE:
I discovered that
%matplotlib notebook
will give me an inline and interactive plot. Which is adequate for my purposes, but for the future, I would still like to know if it is possible to make new plotting windows as I originally asked.
UPDATE 2:
This thread offers the solution to use
%matplotlib qt
to restore the separate-window-plotting feature. But it is appears to pre-date python 3, and when I try the command, it returns
ModuleNotFoundError: No module named 'PyQt4'
FINAL UPDATE:
Apparently this will give me the functionality I wanted:
%matplotlib tk