Sometimes using built-in Python IDLE isn't so quick after all for testing code blocks.
Using online compiler such as Programmiz is limited by the library available. Need to use import os? Sorry NO-GO.
Luckily, Notepad++ comes to the rescue with a very concise setup:
- Go to the Run tab in Notepad++
- Click Run...
- Enter the following command and saved it as "Run Python" or whatever you like:
python -i "$(FULL_CURRENT_PATH)"
- Set a hotkey for that. I set
ctrl+F5
for that. - Now simply test any code you want in Notepad++, saves it and hit
ctrl+F5
to run the python code. Done.
Top comments (0)