在常规控制台上运行此程序效果很好,但是在Spyder中不会显示该窗口。既不打印,也不打印。
main.py:
import subprocess
subprocess.Popen("test.py", shell=True)
test.py:
import matplotlib.pyplot as plt
plt.plot([1,3,2])
plt.show()
我在Windows 10上使用Spyder 3.3.3,python 3.7.3
Github问题跟踪器:https : //github.com/spyder-ide/spyder/issues/9113
固定在spyder 4中
在子流程中显示窗口的选项:
Tools
> Preferences
> IPython Console
> Advanced Settings
>Windows adjustments
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句