python spyder交互式python控制台挂起在matplotlib绘图上
Python 2.7.10 | Anaconda 2.1.0(64位)| spyder 2.3.6 matplotlib 1.4.3python 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
>>> 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
>>>
但是,如果我将所有内容都放在一个脚本中,并使用“执行后交互”运行,它将一直运行到最后,给我>>>提示,但要挂起新命令