Running Python Programs from Notepad++
Why Stack Overflow recommends it
Stack Overflow users link it when answering how to execute a Python script from Notepad++, as a visual walkthrough of the Run menu setup that launches IDLE.
Recommended by 2 people across 2 different months, 2015 to 2018.
What it is
A short 2013 screen-capture tutorial by Kim Nelson showing how to set up Notepad++ so a Python script runs in IDLE straight from the editor. It walks through the Run menu configuration on Windows.
What people said
Recommends Mark · 2015-06 · Stack Overflow · on “How to Execute a Python Script in Notepad++?”
In Notepad++, go to Run → Run... , select the path and idle.py file of your Python installation: C:\Python27\Lib\idlelib\idle.py add a space and this: "$(FULL_CURRENT_PATH)" and here you are! Video demostration: [this video]
Recommends help-info.de · 2016-05 · Stack Overflow · on “Relative path for Python with Notepad++”
I think you have to copy the lessons from your book to a working directory e.g. D:\python-scripts and please go deeper into nppexec for running python from Notepad++. See [LINK] and Running Python Programs from Notepad++ [this video]
Cites ands · 2018-07 · Stack Overflow · on “How to Execute a Python Script in Notepad++?”
I also wanted to run python files directly from Notepad++. Most common option found online is using builtin option Run [LINK] . Then you have two options: Run python file in console (in Windows it is Command Prompt [LINK] ) with code something like this [LINK] (links: [LINK] [LINK] [LINK] ): C:\Path\to\Python\python.exe "$(FULL_CURRENT_PATH)" (If your console window immediately closes after running then you can add cmd /k [LINK] to your code [LINK] . Links: [LINK] [LINK] [LINK] [LINK] ) This works fine, and you can even run files in interactive mode [LINK] by adding -i [LINK] to your code [LINK] (links: [LINK] [LINK] [LINK] [LINK] [LINK] [LINK] [LINK] [LINK] ). Run python program in IDLE [LI