75

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.

Isopycnal Oscillation
  • 2,309
  • 5
  • 18
  • 32
  • 1
    Very simple, but really useful question... I wouldn't have lost so many days waiting for the input data to be revised, but worked independently on a shadow project based on sample data (projected to a separate folder). – Partha D. Oct 20 '20 at 12:29

3 Answers3

140

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

Tools > Preferences > General

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.

Scarabee
  • 4,907
  • 5
  • 25
  • 49
Carlos Cordoba
  • 27,745
  • 9
  • 78
  • 109
  • I deactivated the "use a single instance". When calling Spyder twice from the Gnome launcher, it still jumps to the existing window i.e. I only have a single instance. I have managed however to start a second Spyder instance from the command line. I'm using Spyder 3.3.3 on Debian. – Paul Rougieux Nov 13 '19 at 14:47
  • I think this should work even if some files were common to both projects-- so the other instance would update (or at least prompt to update) the file I changed on one instance ! – Partha D. Oct 20 '20 at 12:31
  • not working for me, my only tool option is "Reset spyder to factory defauls", trying a different path "Python > Preferences > General" does not have the option use a single instance. I am using spyder 4.1.5 with python 3.7 on a mac (osx el capitan). The command line "spyder --new-instance" proposed in the other comment, works for me – Angelo Sajeva Nov 04 '20 at 10:27
52

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

spyder --new-instance
prashanth
  • 3,169
  • 1
  • 18
  • 37
2

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.

jeremy
  • 306
  • 4
  • 15