Can you run the python code from NotePad++ ?? Question seems to be little odd but we can tweak our notepad++ settings and configure it that way. Let's see how -
1. Write few line as your python code, You can use below lines-
print("Today we are going to learn how to use notepad++ to run the python code")
print("As first step, we have to write few python code line")
input("Press Enter to Exit..........")
2. Save this file, in my case, it is saved as "npp_run.py"
3. Check the python executable path in your system. In my case it is - C:\tools\Anaconda3\python.exe (It can be different as per your python installation)
4. Now go to Run menu or Press F5. This will open a run window as below -
Python_Executable_Path $(FULL_CURRENT_PATH)
C:\tools\Anaconda3\python.exe $(FULL_CURRENT_PATH)
7. Choose Run button combination (can use Ctrl + Alt + Shift + Key) and Save.
9. Now, You can run the Python code by pressing the combination buttons (My case - F9)
Things to Remember:
1. This tweak is not replacement for Python IDE :-) such as PyCharm, Spider or many others.
2. Always put the input("Press Enter to Exit..........")at very last line of your code else you will not able to see the python code output.
https://www.facebook.com/datastage4you
https://twitter.com/datagenx
https://plus.google.com/+AtulSingh0/posts
https://datagenx.slack.com/messages/datascience/