NPP Exec modification request to execute code by one press without prompting.
-
Hi again !
I’m very beginner python programmer transitioning from it’s IDLE to Notepad++.
I need to experiment a lot with code, which means to execute it often and see result.
Ideally just press F5 and see result in console. Without repeatedly prompting for program’s path or other stuff. It’s very demotivating and disturbing for me.
I was so dissapointed, that wanted move to Atom.io notepad. But it’s completelly disaster for virgin coder like me.
Since Npp exec is only best and most usage execution plugin, I haven’t other choice as to ask fot it’s modification please.
http://sourceforge.net/projects/npp-plugins/files/NppExec/I would like to see inside of plugin this settings:
- Let it know, that files ending with .py, will execute all in same path (for example: c/program files/python 3.5.1)
- Let me to set it run for one keybutton for example F5
- Let it, to stop executing that thing, and not prompt me to close process. But it was asking me to stop it, even when there were no infinite loops !! I was just using print statements, and that thing prompted me to stop it in console. It’s horrible !!
Please I would like to continue learning, but can’t with IDLE. And dont want over complicated PyCharm or other high end develop enviroment.
Thanks for understanding
-
Let it know, that files ending with .py, will execute all in same path (for example: c/program files/python 3.5.1)
npp_exec is configurable in this case you can either do cd … before executing the script or use variables provided
from npp_exec to achieve this.
If pressing F6 you can put in something likepython $(FULL_CURRENT_PATH)
where $(FULL_CURRENT_PATH) is your currently opened document. Save it and you can reuse it. Direct Execution
of the lasst used npp_exec script is ctrl+F6.Let me to set it run for one keybutton for example F5
F6 is the standard one but Settings->Shortcut Mapper allows you do modify it
Let it, to stop executing that thing, and not prompt me to close process. But it was asking me to stop it, even when there were no infinite
loops !! I was just using print statements, and that thing prompted me to stop it in console. It’s horrible !!This, normally, happens only if the executed process is still running and npp_exec can only handle one process at a time.
If you need multiple process execution you can simply copy paste to have multiple nppexec.dlls.Cheers
Claudia -
No
I was explaining that when I press single button, I need it to immediatelly execute to console without any asking, prompting. Just like in IDLE.And I also said, that npp exec plugin considers non-running process as running ! It’s wrong. As far as I know, only infinite loop can be considered as running process. But that plugin said everything was running, which is wrong.
-
only for the first run you need to press F6 and ENTER do execute the script, every subsequent run can be
executed by pressing CTRL+F6.And I also said, that npp exec plugin considers non-running process as running ! It’s wrong. As far as I know, only infinite loop can be >considered as running process. But that plugin said everything was running, which is wrong.
How do you execute python script?
I use nppexec a lot and I never had such an issue execpt when there was a process running.Cheers
Claudia -
I will now try what you said, step by step, but before it I need to reset all key bindings to default. But how ? There is not such option :(
Meanwhile I deleted npp exec and will install fresh one without any changes.
Thanks