Python Forum

Full Version: Notepad vs anaconda spyder or python shell
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am running on windows 10, and i noticed when i save python script in spyder or a python IDE as .py and click on it it doesnt really run but when i save it in notepad .py it runs how it should. Anyone have any idea why or how i can resolve this issue? Id like to code, and test it in spyder or another python ide but not have to copy paste in notepad.
And what happens if you press F5 in Spyder ?
(Jun-22-2019, 04:43 PM)ShadowAlpha Wrote: [ -> ]i save python script /../ as .py and click on it it doesnt really run

Isin't it easier to run from terminal instead of clicking? You can invoke interactivity by using -i flag:

python -i some_script.py