Who is responsible for viewing and claiming users suggestions ?
-
Before you edited to longer post (how is possible to edit own post ?) I saw you suggested me to write this into Run path:
(I cant recall it from saved Run shortcut. How do it ?) something like: cmd /k python $fullpatch$. (Can you write it again please?)
And result was, the shell window kept opened which is good. But it’s a still new window, which I must switch focus to it, and NP++. And it has some error: http://i.imgur.com/FDRsCbR.png?1
File I was executing, I have on my Desktop. It was there, so I don’t know why this error.Now I read your long final post, so I did (trying to follow your instructions above):
1, Installed fresh npp exec plugin (during install I saw this: http://i.imgur.com/67MhHR2.png).2, Now I deleted that cmd /k saved command F6 by native Run thing.
3, Now press F6 and see npp exec window I guess, I put in what you wrote, I press Ok and console happend: http://i.imgur.com/pzisyd5.png
4, Normal Execute in plugin is F6 and that one press is ctrl+F6. Now I have just switched those two. So when I open NP++, press F6 and it pop’s up that window. I hit Enter and from this moment I can just F6 anytime and it executes it. It’s good. And it does not prompt me to stop execution. Now it’s ok. But it has same problem with that file like python shell had, I dont know what’s going on.
5, Now I see disadvantages (they are problems to me !) with console in compare with pythons IDLE. Console has not history I can view between presses F6. For every new F6 it’s new thing, I cant see what was executed before to see changes. I need it do like IDLE does. And when I want reset/remove all variables or remove screen to blank - no history, I need set too, like it is able in IDLE. How please ?
-
Edit:
Wait a second, I was wrong, I was mixing apples with pears.Python has two things to execute code:
- shell is that black window looks like window’s cmd
- IDLE which is ineractive interpreter + it’s notepad.
I was wrongly referring to interpreter. Because it can store values which are not written in script - a file. But npp exec console is not a interpreter, it’s just executed code written in file. So there is no need to do this:
http://i.imgur.com/yHwII3e.pngBut still, there is need to see prevoius outputs and when scrooling is too much, then clean that console screen. This I would like to do in that.
Thanks for any help. I’m happy someone is helping me with kind of trivial things, but I really don’t want IDE like Pycharm or other pro tools. It’s overwhelming for beginner. And at the same time, IDLE teachs you bad habits, because it’s real time interpreter and sometimes result can be different from script saved in file. That’s why I want use notepad++ (aka scripts wrtitten in files), but at same time, to see result in console in same window - spitscreen, which is advantage of IDLE.
I hope it’s all clear now and I hope npp exec has those things I need to. -
Before you edited to longer post (how is possible to edit own post ?)
By using the three vertical dots in the right corner of your post but you only
have a 3 minute window to do it.One thing which should be clarified first, IDLE, notably the python shell, cannot be replaced
by using notepad++ and NppExec or builtin Run(F5) feature. When executing code using both
methods you always start a new process. No cached informations of previous processes output.
It’s fire and forget. But NppExec had thought about it and provided a way to solve it. add the following
above your python … line. It should be the first lineNPE_CONSOLE a+
I saw you suggested me to write this into Run path:
(I cant recall it from saved Run shortcut. How do it ?) something like: cmd /k python $fullpatch$.Once saved it appears in the Run menu, to see what it does you need to take a look into shortcut.xml.
The command was the same as you put in NppExec except the added cmd /k infront of it.(Can you write it again please?)
why not scrolling in the web browser up?
And result was, the shell window kept opened which is good. But it’s a still new window, which I must switch focus to it, and NP++. And it has some error: http://i.imgur.com/FDRsCbR.png?1
File I was executing, I have on my Desktop. It was there, so I don’t know why this error.Could it be that you have spaces in your path?
If so, windows has this issue since ages, to get around this surround the $(FULL_CURRENT_PATH) by double quotes.
“$(FULL_CURRENT_PATH)”.Now I read your long final post, so I did (trying to follow your instructions above):
1, Installed fresh npp exec plugin (during install I saw this: http://i.imgur.com/67MhHR2.png).Don’t know what plugin manager wants to check - need to investigate.
2, Now I deleted that cmd /k saved command F6 by native Run thing.
3, Now press F6 and see npp exec window I guess, I put in what you wrote, I press Ok and console happend: http://i.imgur.com/pzisyd5.png
You did not save the file it is still only a temporary container. You need to save first, then run python. This applies also to changes
to the file, if you don’t save you run the old copy of that file.4, Normal Execute in plugin is F6 and that one press is ctrl+F6. Now I have just switched those two. So when I open NP++, press F6 and it pop’s up that window. I hit Enter and from this moment I can just F6 anytime and it executes it. It’s good. And it does not prompt me to stop execution. Now it’s ok. But it has same problem with that file like python shell had, I dont know what’s going on.
5, Now I see disadvantages (they are problems to me !) with console in compare with pythons IDLE. Console has not history I can view between presses F6. For every new F6 it’s new thing, I cant see what was executed before to see changes. I need it do like IDLE does. And when I want reset/remove all variables or remove screen to blank - no history, I need set too, like it is able in IDLE. How please ?
You type into the console. cls clears the output window.
Claudia
-
Alright
I added quotes and first line before it, so it looks like this:
http://i.imgur.com/REIEXrE.pngQuotes helped, file found. And that history, is showing also much redundant text which is filling that split screen. See please:
http://i.imgur.com/Uj43PPF.png
Output which I need to see is just 6, 9. Other stuff is no needed, is possible to not show it ? Because it’s filling screen too much and I have small monitor.When I type ‘cls’ into console, it clears nice :) What else useful may I write into there too please ?
Thank you very much for helping me ! This saves me days of googling or asking on other forums + getting minuses on my account on stackoverflow leading to no permission to post anymore. Users who gained a lot of experience numbers are just minus all newbies like mafia. It’s almost unable to get some experience numbers. But not anymore about it. Lets focus on this issues.
-
Alright
I added quotes and first line before it, so it looks like this:
http://i.imgur.com/REIEXrE.pnggreat
Quotes helped, file found. And that history, is showing also much redundant text which is filling that split screen. See please:
http://i.imgur.com/Uj43PPF.png
Output which I need to see is just 6, 9. Other stuff is no needed, is possible to not show it ? Because it’s filling screen too much and I have small monitor.When I type ‘cls’ into console, it clears nice :) What else useful may I write into there too please ?
Thank you very much for helping me ! This saves me days of googling or asking on other forums + getting minuses on my account on stackoverflow leading to no permission to post anymore. Users who gained a lot of experience numbers are just minus all newbies like mafia. It’s almost unable to get some experience numbers. But not anymore about it. Lets focus on this issues.
type help to get a list of all variables and commands which can be used
and e.g. help npe_console to get detailed informations on that particular command.to reduce spam output create another Execute profile by passing this two lines into it
npe_console v- m- a+ cls
what each switch does can be read when using help ;-)
save it with a meaningful name and press either ok or cancel, doesn’t matter.
Next
Plugins->NppExec->Advanced options->Execute this script when Notepad++ starts
choose your previously saved script.Now we don’t need the npe_console a+ above the python … anymore,
so select the python profile, delete the npe_console a+ and save it.Restart npp
Done
Claudia
-
So we finalized commands into it, to looks like this:
http://i.imgur.com/I1v9m3Y.pngIt’s is not what I need, because cls command delete everything outputted before.
No matter how many times I press F6, it will show still one most fresh output on console: http://i.imgur.com/8S2fmx8.png
But I need history of outputs, I need clear just those redundant stuff. But I need to compare outputs based on my code changes. Is possible to modify it under my needs please ?I don’t want run that script on every start of NP++, because I still need code stuff and then see result. So we keep it by F6 pressing.
And I was ticking off this setting:
http://i.imgur.com/snYUjbT.png
Because in every new NP++ run, I don’t want see console at first, I need code something without splitscreen. This untick can not keep it’s value between starts of NP++. Can it be somehow forced to not show console on each start please ?Thank you much Claudia
-
No, I meant something different.
We save the console option in a different profile like herenpe_console v- m- a+ cls npp_console off
save it, and assign it to be started when npp starts like here
Which means your actual python execution profile should then
be changed topython "$(FULL_CURRENT_PATH)"
like here.
That’s it. Everytime you start npp the assigned startup script sets your console parameters.
When pressing (SHIFT +) F6 it will execute python and console is visible again.Cheers
Claudia -
I have read your post five times. I explored everything in npp exec settings and stuff.
I don’t know where do I have to put this:
python “$(FULL_CURRENT_PATH)”In ‘Execute’ window you can’t have two separate scripts or commands. Once I save those three line commands and make it execute on NP++ start, there is no option where may I put line above.
Thanks
-
I have done this:
this commands I saved to profile A and run on start:
npe_console v- m- a+
cls
npp_console offthis I saved as profile B and supposed to be run with F6:
python “$(FULL_CURRENT_PATH)”But I cannot see what is executing, because on start I have still console appeared and by presssing F6 code is exexuting, but still no history. And also on start code get executed without F6.
I’m not sure which profile it’s executing by F6, it’s not possible to check it anyhow.If you may install other NP++ instance and try it, you will get same result.
Thanks
-
@John-Spark said:
I have done this:
this commands I saved to profile A and run on start:
npe_console v- m- a+
cls
npp_console offok
this I saved as profile B and supposed to be run with F6:
python “$(FULL_CURRENT_PATH)”ok
But I cannot see what is executing, because on start I have still console appeared and by presssing F6 code is exexuting, but still no history. And also on start code get executed without F6.
I’m not sure which profile it’s executing by F6, it’s not possible to check it anyhow.If you may install other NP++ instance and try it, you will get same result.
Thanks
of course not ok, I will try it with a new installed npp and see if this is a bug.
I will come back on this.Claudia
-
@John-Spark
it works exactly as I described.
Are you sure you have usednpp_console off
and NOT
npe_console off
?
If so,please post the content of the following two files
...\plugins\Config\npes_saved.txt
and
...\plugins\Config\NppExec.ini
Claudia
-
I apologise. I used wrong npe instead of correct npp.
However, now when I press F6, all happend so fast as blink of an eye.
Console get closed as it gets executed I assume, so I can’t even see a result.
Also I don’t want get closed console after it executes.Thanks and sorry again
-
do you remember what we said, you need to run the execute dialog everytime you start npp for the first time and only one time.
Every subsequent call can be executed by the direct execution function. As far as I remember you switched the normal keys
F6 and SHIFT+F6, didn’t you? So, press SHIFT+F6 what happens?Claudia
-
Yes yes I remember. It did that flash and every other press. Like there is no differention between first press and others. This seems buggy for real.
Here is nppexec.ini
http://i.imgur.com/zUrpp9z.png
Here is npsaved
http://i.imgur.com/ih6Ajlk.pngThanks
-
-
@John-Spark
your npes_saved.txt is wrong.
Why don’t you not just simply copy and past my example?
It must look like this::NppExec Console Settings npe_console v- m- a+ cls npp_console off ::Python python "$(FULL_CURRENT_PATH)"
do you see the difference?
Claudia
-
I’m confused now.
I did:- closed NP++
- opened npes_saved.txt
- pasted copied text from your post above
- saved
-turn on NP++
and I saw this:
http://i.imgur.com/MbqHAje.png
that txt file looks now:
http://i.imgur.com/U6jdALs.pngshortcut file from program files: http://i.imgur.com/dWTlB1p.png
shortcut file from user’s appdata folder: http://i.imgur.com/iBRgDYl.png -
look like means, as far as I know, it is similar but not equal.
You, of course need to adapt it to your needs.
I called my startup script NppExec Console Settings,
whereas you called it claudia commands.
That’s why NppExec cannot find the entry point to execute the commands
on startup, therefore the error.
You either have to change the label back to claudia commands or
change in NppExec.ini the ScriptNppStart toScriptNppStart="NppExec Console Settings"
Claudia
Btw. shortcuts.xml looks ok
-
Oh yes, what a fail of me.
I changed it to claudia commands in .txt file.
Now run NP++ and there is again that situation:- console is not loaded - which is ok
- I press F6 - nothing prompted, just eyeblink time flash something
- repeated press, same thing
-