Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to Execute a Python File in Notepad ++?
- Open Notepad++
- On the menu go to: Run -> Run... (F5)
- Type in: C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)"
- Note: If you have Python 3.1: type in Python31 instead of Python27
- Note: Add -i if you want the command line window to stay open after the script has finished
- Instead of pressing run, press save to create a shortcut for it.
- Now press the newly assigned shortcut on the keyboard to run the Python code.
- 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