How do I make all .py files launch with Spyder?
up vote
2
down vote
favorite
I installed Spyder using Anaconda, and I am able to launch the IDE using the Spyder icon in my start menu (Win10). I wanted to set my preferences to open all .py
files with Spyder, so I followed the Spyder start menu button to an executable, pythonw.exe
. The problem is that I cannot launch pythonw.exe
by clicking it.
How does the start menu icon for Spyder, which points to pythonw.exe
, launch Spyder, but clicking the executable does not yield the same results? Also, when I double click spyder.exe
in AnacondaScripts
a command prompt opens along with the IDE, which does not happen when I click the start menu icon.
Why does this application behave so much differently than any other application I've used before (if this is just how things are in python, I apologize as I'm new!) and is it possible to set Spyder as the default application to open .py
files in the same way I can open source files with IDEs in other languages?
Cheers
python anaconda spyder
add a comment |
up vote
2
down vote
favorite
I installed Spyder using Anaconda, and I am able to launch the IDE using the Spyder icon in my start menu (Win10). I wanted to set my preferences to open all .py
files with Spyder, so I followed the Spyder start menu button to an executable, pythonw.exe
. The problem is that I cannot launch pythonw.exe
by clicking it.
How does the start menu icon for Spyder, which points to pythonw.exe
, launch Spyder, but clicking the executable does not yield the same results? Also, when I double click spyder.exe
in AnacondaScripts
a command prompt opens along with the IDE, which does not happen when I click the start menu icon.
Why does this application behave so much differently than any other application I've used before (if this is just how things are in python, I apologize as I'm new!) and is it possible to set Spyder as the default application to open .py
files in the same way I can open source files with IDEs in other languages?
Cheers
python anaconda spyder
you can try open with and select spyder, it is working for me, but it will take some time to initialize the spyder IDE.
– pyd
Feb 12 at 4:30
This results in the extra blank console window being opened when Spyder launches, and closing the console window closes Spyder. Opening Spyder via the start menu does not cause this console window to open. Any idea what's causing this?
– shtuken
Feb 12 at 6:03
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I installed Spyder using Anaconda, and I am able to launch the IDE using the Spyder icon in my start menu (Win10). I wanted to set my preferences to open all .py
files with Spyder, so I followed the Spyder start menu button to an executable, pythonw.exe
. The problem is that I cannot launch pythonw.exe
by clicking it.
How does the start menu icon for Spyder, which points to pythonw.exe
, launch Spyder, but clicking the executable does not yield the same results? Also, when I double click spyder.exe
in AnacondaScripts
a command prompt opens along with the IDE, which does not happen when I click the start menu icon.
Why does this application behave so much differently than any other application I've used before (if this is just how things are in python, I apologize as I'm new!) and is it possible to set Spyder as the default application to open .py
files in the same way I can open source files with IDEs in other languages?
Cheers
python anaconda spyder
I installed Spyder using Anaconda, and I am able to launch the IDE using the Spyder icon in my start menu (Win10). I wanted to set my preferences to open all .py
files with Spyder, so I followed the Spyder start menu button to an executable, pythonw.exe
. The problem is that I cannot launch pythonw.exe
by clicking it.
How does the start menu icon for Spyder, which points to pythonw.exe
, launch Spyder, but clicking the executable does not yield the same results? Also, when I double click spyder.exe
in AnacondaScripts
a command prompt opens along with the IDE, which does not happen when I click the start menu icon.
Why does this application behave so much differently than any other application I've used before (if this is just how things are in python, I apologize as I'm new!) and is it possible to set Spyder as the default application to open .py
files in the same way I can open source files with IDEs in other languages?
Cheers
python anaconda spyder
python anaconda spyder
edited Nov 27 at 0:03
T.Fung
426
426
asked Feb 12 at 4:24
shtuken
666
666
you can try open with and select spyder, it is working for me, but it will take some time to initialize the spyder IDE.
– pyd
Feb 12 at 4:30
This results in the extra blank console window being opened when Spyder launches, and closing the console window closes Spyder. Opening Spyder via the start menu does not cause this console window to open. Any idea what's causing this?
– shtuken
Feb 12 at 6:03
add a comment |
you can try open with and select spyder, it is working for me, but it will take some time to initialize the spyder IDE.
– pyd
Feb 12 at 4:30
This results in the extra blank console window being opened when Spyder launches, and closing the console window closes Spyder. Opening Spyder via the start menu does not cause this console window to open. Any idea what's causing this?
– shtuken
Feb 12 at 6:03
you can try open with and select spyder, it is working for me, but it will take some time to initialize the spyder IDE.
– pyd
Feb 12 at 4:30
you can try open with and select spyder, it is working for me, but it will take some time to initialize the spyder IDE.
– pyd
Feb 12 at 4:30
This results in the extra blank console window being opened when Spyder launches, and closing the console window closes Spyder. Opening Spyder via the start menu does not cause this console window to open. Any idea what's causing this?
– shtuken
Feb 12 at 6:03
This results in the extra blank console window being opened when Spyder launches, and closing the console window closes Spyder. Opening Spyder via the start menu does not cause this console window to open. Any idea what's causing this?
– shtuken
Feb 12 at 6:03
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
You can right click any of your *.py
file, go to properties and choose Spyder as "Opens with" choice.
I guess this answers the question in the title but it isn't a perfect fix because it causes an additional cmd window to open along with the IDE. Also I still have no idea how the start menu icon operates.
– shtuken
Feb 12 at 23:33
add a comment |
up vote
2
down vote
I found the answer in this question, answer by xyzjayne.
You create a bat file with the following contents:
start YOURPATHAnaconda2pythonw.exe YOURPATHAnaconda2cwp.py YOURPATHAnaconda2 "YOURPATH/Anaconda2/pythonw.exe" "YOURPATH/Anaconda2/Scripts/spyder-script.py" %1
YOURPATH will be the path leading to the folder just above the Anaconda folder. For me it was:
C:ProgramData
And you select the Choose default program to open this file... - and you choose that bat file.
When you go to Spyder shortcut's properties, the target includes a few files. So my guess is that for Spyder to run, all of these files must be run, and that's why when you just point .py files to one exe it doesn't work.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You can right click any of your *.py
file, go to properties and choose Spyder as "Opens with" choice.
I guess this answers the question in the title but it isn't a perfect fix because it causes an additional cmd window to open along with the IDE. Also I still have no idea how the start menu icon operates.
– shtuken
Feb 12 at 23:33
add a comment |
up vote
1
down vote
accepted
You can right click any of your *.py
file, go to properties and choose Spyder as "Opens with" choice.
I guess this answers the question in the title but it isn't a perfect fix because it causes an additional cmd window to open along with the IDE. Also I still have no idea how the start menu icon operates.
– shtuken
Feb 12 at 23:33
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You can right click any of your *.py
file, go to properties and choose Spyder as "Opens with" choice.
You can right click any of your *.py
file, go to properties and choose Spyder as "Opens with" choice.
answered Feb 12 at 4:54
Yilun Zhang
2,80811331
2,80811331
I guess this answers the question in the title but it isn't a perfect fix because it causes an additional cmd window to open along with the IDE. Also I still have no idea how the start menu icon operates.
– shtuken
Feb 12 at 23:33
add a comment |
I guess this answers the question in the title but it isn't a perfect fix because it causes an additional cmd window to open along with the IDE. Also I still have no idea how the start menu icon operates.
– shtuken
Feb 12 at 23:33
I guess this answers the question in the title but it isn't a perfect fix because it causes an additional cmd window to open along with the IDE. Also I still have no idea how the start menu icon operates.
– shtuken
Feb 12 at 23:33
I guess this answers the question in the title but it isn't a perfect fix because it causes an additional cmd window to open along with the IDE. Also I still have no idea how the start menu icon operates.
– shtuken
Feb 12 at 23:33
add a comment |
up vote
2
down vote
I found the answer in this question, answer by xyzjayne.
You create a bat file with the following contents:
start YOURPATHAnaconda2pythonw.exe YOURPATHAnaconda2cwp.py YOURPATHAnaconda2 "YOURPATH/Anaconda2/pythonw.exe" "YOURPATH/Anaconda2/Scripts/spyder-script.py" %1
YOURPATH will be the path leading to the folder just above the Anaconda folder. For me it was:
C:ProgramData
And you select the Choose default program to open this file... - and you choose that bat file.
When you go to Spyder shortcut's properties, the target includes a few files. So my guess is that for Spyder to run, all of these files must be run, and that's why when you just point .py files to one exe it doesn't work.
add a comment |
up vote
2
down vote
I found the answer in this question, answer by xyzjayne.
You create a bat file with the following contents:
start YOURPATHAnaconda2pythonw.exe YOURPATHAnaconda2cwp.py YOURPATHAnaconda2 "YOURPATH/Anaconda2/pythonw.exe" "YOURPATH/Anaconda2/Scripts/spyder-script.py" %1
YOURPATH will be the path leading to the folder just above the Anaconda folder. For me it was:
C:ProgramData
And you select the Choose default program to open this file... - and you choose that bat file.
When you go to Spyder shortcut's properties, the target includes a few files. So my guess is that for Spyder to run, all of these files must be run, and that's why when you just point .py files to one exe it doesn't work.
add a comment |
up vote
2
down vote
up vote
2
down vote
I found the answer in this question, answer by xyzjayne.
You create a bat file with the following contents:
start YOURPATHAnaconda2pythonw.exe YOURPATHAnaconda2cwp.py YOURPATHAnaconda2 "YOURPATH/Anaconda2/pythonw.exe" "YOURPATH/Anaconda2/Scripts/spyder-script.py" %1
YOURPATH will be the path leading to the folder just above the Anaconda folder. For me it was:
C:ProgramData
And you select the Choose default program to open this file... - and you choose that bat file.
When you go to Spyder shortcut's properties, the target includes a few files. So my guess is that for Spyder to run, all of these files must be run, and that's why when you just point .py files to one exe it doesn't work.
I found the answer in this question, answer by xyzjayne.
You create a bat file with the following contents:
start YOURPATHAnaconda2pythonw.exe YOURPATHAnaconda2cwp.py YOURPATHAnaconda2 "YOURPATH/Anaconda2/pythonw.exe" "YOURPATH/Anaconda2/Scripts/spyder-script.py" %1
YOURPATH will be the path leading to the folder just above the Anaconda folder. For me it was:
C:ProgramData
And you select the Choose default program to open this file... - and you choose that bat file.
When you go to Spyder shortcut's properties, the target includes a few files. So my guess is that for Spyder to run, all of these files must be run, and that's why when you just point .py files to one exe it doesn't work.
answered Nov 22 at 16:15
Scruffy
415
415
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48739521%2fhow-do-i-make-all-py-files-launch-with-spyder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
you can try open with and select spyder, it is working for me, but it will take some time to initialize the spyder IDE.
– pyd
Feb 12 at 4:30
This results in the extra blank console window being opened when Spyder launches, and closing the console window closes Spyder. Opening Spyder via the start menu does not cause this console window to open. Any idea what's causing this?
– shtuken
Feb 12 at 6:03