在常规控制台上运行此程序效果很好,但是从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 3.3.4中已修复,在子过程中显示窗口的选项