问题
I would like to know if there is a way to run python scripts in spyder-ide using windows cmd or PowerShell instead of IPython console.
Ipython sometimes works differently than if the script is run in cmd specially for plotting packages like matplotlib, etc.
I am using Spyder latest version.
Regards
回答1:
In Spyder, you can click Run > Configuration per file, which will give you plenty of options in where your Spyder-IDE-Script is launched.
回答2:
I think the option you are looking for is "Execute in External System Terminal" in the options found under the menu item of [Tools] / [Preferences] / [Run]
来源:https://stackoverflow.com/questions/52117759/running-scripts-in-spyder-using-windows-command-prompt-or-powershell