ipython matplot挂起ubuntu

时间:2018-06-03 19:52:27

标签: python-3.x matplotlib ipython

我在Ubuntu Xenial上使用Python 3.5.2,IPython 6.4.0和matplot 2.2.2。 当我尝试使用pylab运行简单的绘图时,桌面会挂起

$ uname -a
Linux voyager 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ ipython
Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
%autoindent is deprecated since IPython 5: you can now paste multiple lines without turning autoindentation off.
Automatic indentation is: OFF

In [1]: pylab
Using matplotlib backend: TkAgg
Populating the interactive namespace from numpy and matplotlib

In [2]: x = linspace(-10., 10., 1000)

In [3]: plot(x, sin(x))

ipython进程使用100%的cpu。没有情节出现。我必须杀死ipython进程。

0 个答案:

没有答案