如何运行两个独立的 Spyder 实例

我希望能够有两个完全独立的实例,这意味着我可以在不同的文件夹中处理两个独立的不相关的项目,而不受任何干扰。

72822 次浏览

Although clicking on the Spyder icon will not allow you to open two instances, you can open a second instance by simply going to the folder where spyder.py is and running spyder.py from the command line.

Further, you could make an icon for your desktop that simply runs spyder.py from its location. However, I don't know how multiple instances will affect user preferences if Spyder has those.

(Spyder maintainer here) This is easy. You need to go to:

Tools > Preferences > Application

in Spyder 5, or

Tools > Preferences > General

in Spyder 4, click the "Advanced Settings" tab, and deactivate the option called

[ ] Use a single instance

Then every time you start Spyder a new window will be opened. If you want the old behavior back, just activate that option again.

You can use the --new-instance option as well. Just run

spyder --new-instance

Update for Spyder 5.0.3+ (07/2021 onwards)

First, same as Carlos's answer:

Tools > Preferences

But then:

Application > Advanced settings

Then deselect [✔] Use a single instance, so it becomes [] Use a single instance, which will result in a new window opening each time Spyder is launched.

Still working for me in Spyder 5.1.5.