How do I run two separate instances of Spyder
Asked Answered
M

6

97

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.

Madriene answered 11/8, 2014 at 19:35 Comment(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).Enplane
T
181

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

Taker answered 21/9, 2014 at 5:51 Comment(4)
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.Wherever
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 !Enplane
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 meBoys
For anyone using Spyder Version 5, this option is under Tools > Preferences > Application > Advanced settingsRetrogradation
L
71

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

spyder --new-instance
Lemuel answered 30/3, 2016 at 9:52 Comment(2)
where do you write it?Bromoform
@Bromoform in the command prompt. If not working then in the Anaconda prompt.Lemuel
A
7

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.

Attire answered 7/7, 2021 at 10:48 Comment(0)
O
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.

Opposite answered 5/9, 2014 at 15:37 Comment(0)
G
0

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)

Groundsill answered 18/11, 2023 at 7:12 Comment(0)
N
0

For Spyder 5.5, deactivating single instance does not work. You can do

Right Click on Console 1/A > choose New Console (default settings)

enter image description here

Nuss answered 1/2, 2024 at 7:27 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.