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.
(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.
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.
Open the first instance of the app
open -a "Name_of_App.app"
Open the second instance of the app using Terminal
open -n -a "Name_of_App.app"
Make sure to replace "Name_of_App.app" with the actual name of the application you want to open (mac os)
For Spyder 5.5, deactivating single instance does not work. You can do
Right Click on Console 1/A > choose New Console (default settings)
© 2022 - 2025 — McMap. All rights reserved.