How do I run two separate instances of Spyder

PythonMultiple InstancesSpyder

Python Problem Overview


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.

Python Solutions


Solution 1 - Python

(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.

Solution 2 - Python

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

spyder --new-instance

Solution 3 - Python

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.

Solution 4 - Python

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionIsopycnal OscillationView Question on Stackoverflow
Solution 1 - PythonCarlos CordobaView Answer on Stackoverflow
Solution 2 - PythonprashanthView Answer on Stackoverflow
Solution 3 - PythonR_DaxView Answer on Stackoverflow
Solution 4 - PythonjeremyView Answer on Stackoverflow