2

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.

3
  • You could add a Run command in Notepad++ for Python. Run > Modify Shortcut/Delete Command Commented Apr 29, 2016 at 22:42
  • I find it easier to keep a terminal window open (like cmd) and just running things from that. Commented Apr 29, 2016 at 22:46
  • What benefit is NPP over IDLE? Commented Apr 29, 2016 at 22:58

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

8 Comments

C:\Users\Nanders\AppData\Local\Programs\Python\Python35\python.exe "$(FULL_CURRENT_PATH)" Like this @Viliami
Because whenever I use that code and I click run nothing happens
@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.
I checked where it is and my code was wrong, but when I put this in:
C:\Users\Nanders\AppData\Local\Programs\Python\Python35-32\python
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.