Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python spyder交互式python控制台挂起在matplotlib绘图上_Python_Matplotlib_Spyder - Fatal编程技术网

python spyder交互式python控制台挂起在matplotlib绘图上

python spyder交互式python控制台挂起在matplotlib绘图上,python,matplotlib,spyder,Python,Matplotlib,Spyder,Python 2.7.10 | Anaconda 2.1.0(64位)| spyder 2.3.6 matplotlib 1.4.3 >>> fig = matplotlib.pyplot.figure() 将生成一个图形窗口。无论我是否关闭该图形窗口,spyder控制台都会挂起新命令,除非我按ctrl-C >>> 1+1 2 (this 2 does not show until I press ctrl-C) Traceback (most rece

Python 2.7.10 | Anaconda 2.1.0(64位)|

spyder 2.3.6

matplotlib 1.4.3

>>> fig = matplotlib.pyplot.figure()
将生成一个图形窗口。无论我是否关闭该图形窗口,spyder控制台都会挂起新命令,除非我按ctrl-C

>>> 1+1


2 (this 2 does not show until I press ctrl-C)
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 314, in 'calling callback function'
  File "C:\Anaconda\lib\site-    packages\spyderlib\widgets\externalshell\sitecustomize.py", line 297, in     qt_nt_inputhook
QtCore.QCoreApplication.exec_()
KeyboardInterrupt
>>> 
但是,如果我将所有内容都放在一个脚本中,并使用“执行后交互”运行,它将一直运行到最后,给我>>>提示,但要挂起新命令