Python Forum
Cannot "Run" python on notepad++
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot "Run" python on notepad++
#1
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]
Reply
#2
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.
Recommended Tutorials:
Reply
#3
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
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
(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.
Reply
#5
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.
Reply
#6
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
Reply
#7
I use vs express, I try and did not like it. I did not give it much of a chances.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters Dragiev 6 2,244 Jul-24-2022, 12:55 PM
Last Post: Dragiev
  Variable from notepad problem samuelbachorik 2 2,295 Apr-10-2020, 09:04 AM
Last Post: samuelbachorik
  Running python code meant for Notepad++ plugin independently greektranslator 3 2,980 Jan-28-2019, 06:03 PM
Last Post: maxtimbo
  Exporting Python Output to Notepad Nirmal 4 3,578 Sep-02-2018, 02:36 PM
Last Post: Nirmal
  Is there an equivalent of Notepad in linux sylas 5 3,853 Jun-15-2018, 12:33 PM
Last Post: DeaD_EyE
  Setup Notepad++ for python LavaCreeperKing 6 12,746 Mar-22-2018, 07:27 PM
Last Post: LavaCreeperKing
  With Notepad how to have lines numbered sylas 3 3,301 Mar-10-2018, 08:25 AM
Last Post: sylas
  Get filepath to save from notepad.exe python3 Jason2024 1 2,969 Oct-03-2017, 02:30 PM
Last Post: sparkz_alot
  Path of Notepad++ and Python Vienetas 6 8,770 Oct-13-2016, 07:22 PM
Last Post: sparkz_alot
  Cant Get Powershell to run a python program from notepad++. Newbie help! Pythonerous 4 8,906 Oct-10-2016, 07:16 PM
Last Post: Pythonerous

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020