Python 如何运行两个单独的 Spyder 实例
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25250998/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I run two separate instances of Spyder
提问by Isopycnal Oscillation
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.
我希望能够拥有两个完全独立的实例,因为我可以在不同文件夹中处理两个独立的不相关项目而不会受到任何干扰。
采纳答案by Carlos Cordoba
(Spyder dev here) This is very easy. You need to go to:
(这里是Spyder dev)这很容易。你需要去:
Tools > Prefences > General
Tools > Prefences > General
and click "Advanced Settings" tab, and deactivate the option called
并单击“高级设置”选项卡,并停用名为
[ ] Use a single instance
[ ] 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 时都会打开一个新窗口。如果您想要恢复旧行为,只需再次激活该选项。
回答by jeremy
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 拥有这些实例,我不知道多个实例将如何影响用户偏好。
回答by prashanth
You can use the --new-instance option as well. Just run
您也可以使用 --new-instance 选项。赶紧跑
spyder --new-instance

