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

时间:2015-09-29 10:52:50

标签: 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 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
>>> 

但是,如果我把所有内容都放在一个脚本中并运行“执行后交互”,它将一直到最后,给我>>>提示,但挂起新命令

0 个答案:

没有答案