Spyder中的子进程,matplotlib和打印不起作用

问题描述 投票:1回答:1

在常规控制台上运行此程序效果很好,但是从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

python matplotlib subprocess spyder
1个回答
1
投票

在spyder 3.3.4中已修复,在子过程中显示窗口的选项

© www.soinside.com 2019 - 2024. All rights reserved.