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

时间:2021-08-17 23:01:06

I want to be able to have two instances which are completely independent in the sense that I can be working on two separate unrelated projects in different folders without any interference.

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

3 个解决方案

#1


50  

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

(Spyder dev here)这很容易。你需要去:

Tools > Prefences > General

工具> Prefences>常规

and click "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.

然后每次启动Spyder时都会打开一个新窗口。如果您想要恢复旧行为,只需再次激活该选项即可。

#2


14  

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

您也可以使用--new-instance选项。赶紧跑

spyder --new-instance

#3


0  

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.

虽然单击Spyder图标将不允许您打开两个实例,但只需转到spyder.py所在的文件夹并从命令行运行spyder.py即可打开第二个实例。

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.py的图标。但是,我不知道如果Spyder有多个实例会影响用户首选项。

#1


50  

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

(Spyder dev here)这很容易。你需要去:

Tools > Prefences > General

工具> Prefences>常规

and click "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.

然后每次启动Spyder时都会打开一个新窗口。如果您想要恢复旧行为,只需再次激活该选项即可。

#2


14  

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

您也可以使用--new-instance选项。赶紧跑

spyder --new-instance

#3


0  

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.

虽然单击Spyder图标将不允许您打开两个实例,但只需转到spyder.py所在的文件夹并从命令行运行spyder.py即可打开第二个实例。

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.py的图标。但是,我不知道如果Spyder有多个实例会影响用户首选项。