Spyder 中的子进程、matplotlib 和打印件不起作用
Subprocess in Spyder, matplotlib and prints do not work
运行 这在常规控制台上运行良好,但在 Spyder 中 window 不会显示。顺便说一句,两者都不打印。
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 中修复,
在子进程中显示 windows 的选项:
Tools
> Preferences
> IPython Console
> Advanced Settings
> Windows adjustments
运行 这在常规控制台上运行良好,但在 Spyder 中 window 不会显示。顺便说一句,两者都不打印。
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.3Github 问题跟踪器:https://github.com/spyder-ide/spyder/issues/9113
已在 spyder 4 中修复,
在子进程中显示 windows 的选项:
Tools
> Preferences
> IPython Console
> Advanced Settings
> Windows adjustments