954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to configure notepad++ for python

Hi
i have been spending the last few days deciding on an IDE that would let me program in Java, C++ and python and notepad++ looked pretty good. The only issue is i cant work out how to make the program run once i have made it. I looked in google and i couldn't find any tutorials to set it for python but if anyone could help that would be greatly appreciated.
Thanks!

Paul Thompson
Veteran Poster
1,119 posts since May 2008
Reputation Points: 264
Solved Threads: 183
 

from what I know Notepad++ Is editor not IDE. I think you need to Go for something like Netbeans. Their next version will support python (For now it supports to some extent). It does more than that, maaany languages. Just check their main package and nbpython plugin!

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

I did this and had a hell of a time figuring it out!

Go to Run -> "Run...", then type in
C:\PythonXX\pythonw.exe "$(FULL_CURRENT_PATH)" ** Note I use pythonw.exe, you can just as easily use the standard python.exe (I just hate that console window), and when you've got that hit the "Save..." button for a dialog where you can name it and assign a shortcut to it.

*Note: Ctrl + R was already taken (and I'm too used to it from CodeEditor) so I went to Settings -> "Shortcut Mapper..." to give my python run command the Ctrl + R and moved whatever that used to be occupied to something else

Just dug this out of my bookmarks: Notepad++ Run external tools

jlm699
Veteran Poster
1,112 posts since Jul 2008
Reputation Points: 355
Solved Threads: 292
 

Thanks, that worked a charm. The only thing i was missing was the "" around the $(FULL_CURRENT_PATH. But thanks anyway.

Problem Solved!

Paul Thompson
Veteran Poster
1,119 posts since May 2008
Reputation Points: 264
Solved Threads: 183
 

Just for anyone googling - there is now a Python Plugin for Notepad++ that allows direct access to run Python scripts from within Notepad++ - it also gives full programmatic access to all of Notepad++'s features.

davegb3
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

The python shell (pythonw.exe) does not come up. But when i use the console(python.exe), it works. Can someone please help me figure this out cos i really prefer the pythonw.exe> i hate the console too

Here's what i used:

C:\python27\pythonw.exe "$(FULL_CURRENT_PATH)"
Netcode
Veteran Poster
1,021 posts since Jun 2009
Reputation Points: 43
Solved Threads: 67
 

plz help none of them are working for me! help i have notepad++ but it only runs with html :( i want to use python but when i select the language it looks like its gonna work (like it has the "print" in blue and that stuff) but it wont run !!! help!!!

baconboy414
Newbie Poster
1 post since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

And if you want a console that stays open afterward like IDLE does, for browsing objects and output, use

C:\PythonXX\python.exe -i "$(FULL_CURRENT_PATH)"

I'd sage this post but I don't see an option..

LieAfterLie
Light Poster
44 posts since May 2006
Reputation Points: 23
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You