pythonnotepad++anaconda3nppexec

Python script not terminating properly in Notepad++


I have installed anaconda3 and notepad++, I'm trying to link NppExec, a Notepad++'s plugin so that not only I can run both pure python and other libraries (like matplotlib or numpy). I have found one solution at: Cannot run conda command 'activate' with NppExec plugin of Notepad++

This solution works, however when I run it the execution of the process does not terminate and I am forced to press Ctrl+C in the console to terminate it manually. I think this is due to anaconda's activate file not having an end (probably in the bat file?). Is there a workaround to this? Maybe with a termination clause in the bat file or a clever workaround in notepad?


Solution

  • As Justin commented use activate.bat & python "$(FULL_CURRENT_PATH)" and it closes automatically after the execution