2

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?

Kraigolas
  • 5,121
  • 3
  • 12
  • 37
Cristian
  • 53
  • 6
  • 1
    If you're using `activate.bat & python -i "$(FULL_CURRENT_PATH)"` as in the linked SO post, then the `-i` is what's preventing the termination. Just remove the `-i`. –  Jul 16 '21 at 13:52
  • Yess, thank you! I definitely did not understand that from the documentation: inspect interactively after running script: forces prompt even if stdin does not appear to be a terminal. – Cristian Jul 16 '21 at 15:06

1 Answers1

0

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

Cristian
  • 53
  • 6