Python Forum

Full Version: Cannot "Run" python on notepad++
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am unable to "Run" python code on notepad++. It does nothing.


I link it to C:\Python3.5.2\Lib\idlelib\idle.py -i "$(FULL_CURRENT_PATH)"

Also as you can see all the .py files have no image. Why is that?

[Image: python.png]
Quote:C:\Python3.5.2\Lib\idlelib\idle.py -i "$(FULL_CURRENT_PATH)"
You would want it to link to
C:\Python3.5.2\python.exe
As for the images i have no idea as i am mostly on linux.
Quote:Also as you can see all the .py files have no image. Why is that?

It could be because you have incorrectly linked the '.py' extension to Idle instead of to python.exe.  A quick way to check is to right click one of the files --> Properties --> check the "Opens with:" , it should say Python.  If not, you can click the "Change" button or go to the Default Programs in the Control Panel and make your change there
(Dec-07-2016, 01:38 AM)metulburr Wrote: [ -> ]
Quote: C:\Python3.5.2\Lib\idlelib\idle.py -i "$(FULL_CURRENT_PATH)"
You would want it to link to
C:\Python3.5.2\python.exe
As for the images i have no idea as i am mostly on linux.

Thanks a lot metulburr!
Linking to python.exe works although what i want is this: https://www.youtube.com/watch?v=sJipYE1JT38 go to 1:20.

I run the parameters as in the video, it opens the python shell but does not give me the result from my code.

Are you able to replicate instructions as in the video?

(Dec-07-2016, 01:34 PM)sparkz_alot Wrote: [ -> ]
Quote:Also as you can see all the .py files have no image. Why is that?

It could be because you have incorrectly linked the '.py' extension to Idle instead of to python.exe.  A quick way to check is to right click one of the files --> Properties --> check the "Opens with:" , it should say Python.  If not, you can click the "Change" button or go to the Default Programs in the Control Panel and make your change there

Check the reply i gave metulburr. I am trying to achieve the same as the instructor on youtube. I would like to code from notepad++. 
If it's not productive i'l install Pydev with Eclipse.
I use Notepad++ very often I find it good enough to develop for small to medium projects/scripts. You may want to check available plugins for python.
You may not know (or know but haven't tried) PyCharm (community edition available without charge)
I love notebook++ for editing data, and for quick python changes, but it's really not up to IDE caliber
PyCharm offers a lot more, including code completion, syntax checking, and code inspection (like lint).
You should give it a try
I use vs express, I try and did not like it. I did not give it much of a chances.