Skip to main content
24 events
when toggle format what by license comment
Jun 22, 2018 at 15:08 comment added a1s2d3f4 this worked for me: cmd /k "c:\python36\python "$(FULL_CURRENT_PATH)"". Note the extra quotes around the whole statement that's sent to cmd.
Apr 11, 2018 at 6:36 comment added Bharat Anand Tried all answers and all options within those on this page, all I have been able to get is a cmd window open up with different present working directory locations! None of them actually executed my python program from the Notepad++ from where I launched python using F5. Please help!
Jan 31, 2018 at 14:38 review Suggested edits
Jan 31, 2018 at 16:20
Jan 30, 2018 at 15:55 comment added Stevoisiak @GabrielStaples Can you post the py -3 method as its own answer?
S Jan 29, 2018 at 19:27 history suggested Stevoisiak CC BY-SA 3.0
Rearrage options to put reccomended option first, least safe option last.
Jan 29, 2018 at 18:20 review Suggested edits
S Jan 29, 2018 at 19:27
Dec 11, 2017 at 4:50 review Suggested edits
Dec 11, 2017 at 6:59
Dec 10, 2017 at 19:25 review Suggested edits
Dec 10, 2017 at 21:52
Aug 27, 2016 at 18:45 comment added Gabriel Staples Update: this works for me too: py -3 -i "$(FULL_CURRENT_PATH)". Helpful link to understand the py -3 command: stackoverflow.com/questions/15912063/…
Jul 12, 2016 at 1:29 comment added Gabriel Staples for Python 3.5 the directory is a little bit more complicated. This works for me: C:\Users\Gabriel\AppData\Local\Programs\Python\Python35-32\python.exe -i "$(FULL_CURRENT_PATH)"
Jan 13, 2016 at 19:58 comment added copeland3300 While this answer (#3) seems to be the most common one I've found on the web, it doesn't work well for me. The problem is that it runs everything in the Notepad++ directory. Thus, I've come up with the following solution: cmd /c "taskkill /F /IM python.exe & cd $(CURRENT_DIRECTORY) & C:\Python27\python.exe -i "$(CURRENT_DIRECTORY)\$(FILE_NAME)"" This runs the code in the correct folder, as well as leaves an interpreter open after execution. Further, it will close any other open python windows you have that you might have neglected to close, as I frequently do.
Sep 4, 2015 at 10:39 review Suggested edits
Sep 4, 2015 at 11:32
Jun 30, 2015 at 23:12 history edited Elazar CC BY-SA 3.0
The beginning of the answer is not valid any more, since the link is broken
May 5, 2014 at 20:53 comment added AlanSE I don't understand the shortcut thing. I save it and give it a shortcut combination, but then it won't run just by pressing those keys. What am I doing wrong? I can make it a plugin command and use it when the console window is selected. But that completely defeats the point.
S Feb 21, 2014 at 15:50 history suggested user95469 CC BY-SA 3.0
Added note about -i for keeping the Python window open
Feb 21, 2014 at 15:46 review Suggested edits
S Feb 21, 2014 at 15:50
S Mar 24, 2012 at 13:49 history suggested mpcabd CC BY-SA 3.0
I moved my blog long time ago from magicpc.wordpress.com to mpcabd.igeex.biz. @mpcabd
Mar 24, 2012 at 12:52 review Suggested edits
S Mar 24, 2012 at 13:49
Jan 2, 2010 at 9:50 comment added Ramiz Uddin Open Notepad++. On the menu go to: Run -> Run.. (F5). Type in: cmd /K "$(FULL_CURRENT_PATH)"
Nov 9, 2009 at 19:39 history edited Reshure CC BY-SA 2.5
added 330 characters in body; added 2 characters in body; deleted 14 characters in body
Nov 9, 2009 at 18:56 comment added Robert Rossney The problem is that you have spaces in the path to the file that it's trying to open, and your script doesn't put double quotes around it.
Nov 9, 2009 at 18:54 comment added richtea hmm, thanks for the help so far. I tried option 2, that didnt work. It said : i37.tinypic.com/b4fhfm.jpg On Windows 7, this might be the problem?
Nov 9, 2009 at 18:34 history edited Reshure CC BY-SA 2.5
added 619 characters in body
Nov 9, 2009 at 17:44 history answered Reshure CC BY-SA 2.5