Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start two instances of Spyder with Python 2.7 & Python 3.4?

I had spyder installed with Python 3.4 on Windows Vista.

Today I wanted to run spyder with Python 2.7. So, went through this post & installed Python 2.7 for spyder. Now, how do I start spyder with Python 2.7 instead of the default 3.4? (I wanted to comment at the post & ask @user3058525 but could not due to reputation restriction)

Could anyone help out?

P.S: I could create a virtualenv. But want to work in spyder...

like image 288
Rampy Avatar asked Feb 04 '15 09:02

Rampy


People also ask

Is it possible to use Spyder on Python 2 7?

Found a workaround to use Spyder on python 2.7. setup two virtual environments for Python 2.7 and 3.6. Done! I tried this and got the following error with starting the kernel in the ipython console:

How do I run two instances of Spyder on Windows 10?

Just run 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.

What is the latest version of Spyder for Conda?

Create a conda environment with Spyder 3.3.6, which is the stable version for Spyder 3 that supports Python 2. Create a conda environment with Spyder 4.0.1, which is the last Spyder version that has all packages for Python 2.

How to make Spyder open a new window on startup?

You can use the --new-instance option as well. Just run where do you write it? @Matan in the command prompt. If not working then in the Anaconda prompt. 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.


1 Answers

@Roberto: Gotcha!

Learnt that we can check for environments installed in conda using conda info -e

It showed the path for installed python 2 environment as C:\Users\ramprasad.g\AppData\Local\Continuum\Anaconda3\envs\python2\

Spyder IDE for Python 2 was in Scripts folder inside envs\python2 (C:\Users\ramprasad.g\AppData\Local\Continuum\Anaconda3\envs\python2\Scripts)

Clicked on it & voila, Spyder started with Python 2.7!

Thank you...

like image 120
Rampy Avatar answered Oct 21 '22 04:10

Rampy