When using this in a script (not IPython), nothing happens, i.e. the plot window doesn't appear :
import numpy as npimport pandas as pdts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))ts.plot()
Even when adding time.sleep(5)
, there is still nothing. Why?
Is there a way to do it, without having to manually call matplotlib ?