Advertisement
here2share

How to Execute a Python File in Notepad ++?

Dec 1st, 2017
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. How to Execute a Python File in Notepad ++?
  2.  
  3.  
  4. Open Notepad++
  5.  
  6. On the menu go to: Run -> Run... (F5)
  7.  
  8. Type in: C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)"
  9.  
  10. Note: If you have Python 3.1: type in Python31 instead of Python27
  11.  
  12. Note: Add -i if you want the command line window to stay open after the script has finished
  13.  
  14. Instead of pressing run, press save to create a shortcut for it.
  15.  
  16. Now press the newly assigned shortcut on the keyboard to run the Python code.
  17.  
  18. Note: The first part of the command, C:\Python27\python.exe may vary in reflecting where Python is installed, but that the second half,-i "$(FULL_CURRENT_PATH)", is magic that needed to be typed just as is.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement