I have notepad++ version v6.9.1 and python 3.5 (32 bit). Running Windows 10. I need to be able to run my python code, but when I try to download the PyNPP plugin (this is what I use at school) it gives me and error message saying the it isn't compatible with the version of NPP.
-
You could add a Run command in Notepad++ for Python. Run > Modify Shortcut/Delete CommandSam McCreery– Sam McCreery2016-04-29 22:42:30 +00:00Commented Apr 29, 2016 at 22:42
-
I find it easier to keep a terminal window open (like cmd) and just running things from that.TigerhawkT3– TigerhawkT32016-04-29 22:46:20 +00:00Commented Apr 29, 2016 at 22:46
-
What benefit is NPP over IDLE?OneCricketeer– OneCricketeer2016-04-29 22:58:25 +00:00Commented Apr 29, 2016 at 22:58
Add a comment
|
1 Answer
You don't need a plugin to run Python code from NotePad++.
Just press F5 and then depending on the location of Python you will type:
C:\Python32\python.exe "$(FULL_CURRENT_PATH)"
Of course, you will have to replace C:\Python32\python.exe with the location of your Python installation.
You can also save this as a keyboard shortcut, just click save, and input the keyboard shortcut you would like to use.
8 Comments
Noah Anderson
C:\Users\Nanders\AppData\Local\Programs\Python\Python35\python.exe "$(FULL_CURRENT_PATH)" Like this @Viliami
Noah Anderson
Because whenever I use that code and I click run nothing happens
Viliami
@NoahAnderson if you're clicking "Run" and nothing is happening, it is most likely because the command you entered is incorrect. Are you sure that is the correct file path for python? Copy and paste it into explorer and see if it shows up.
Noah Anderson
I checked where it is and my code was wrong, but when I put this in:
Noah Anderson
C:\Users\Nanders\AppData\Local\Programs\Python\Python35-32\python
|