I am a newbie and the following question may be dumb and not well written. I tried the following block of codes in Ipython:
%pylab qt5
x = randn(100,100)
y = mean(x,0)
import seaborn
plot(y)
And it delivered a plot. Everything was fine.
However, when I copied and pasted those same lines of codes to Pycharm and tried running, syntax error messages appeared.
For instance,
- %pylab was not recognized.
- Then I tried to import numpy and matplotlib one by one. But then, randn(.,.) was not recognized.