Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.11 KB

cllqr2drm00wzfxnvakjl5dv0.md

File metadata and controls

31 lines (20 loc) · 1.11 KB
title seoTitle seoDescription datePublished cuid slug cover
Quick Notepad++ Setup for Python
Quick Notepad++ setup to compile Python code
How to quickly setup Notepad++ to run Python code
Sat Dec 31 2022 12:33:30 GMT+0000 (Coordinated Universal Time)
cllqr2drm00wzfxnvakjl5dv0
quick-notepad-setup-for-python

Sometimes using built-in Python IDLE isn't so quick after all for testing code blocks.

Using online compilers 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:

  1. Go to the Run tab in Notepad++

  2. Click Run...

  3. Enter the following command and save it as "Run Python" or whatever you like:

 python -i "$(FULL_CURRENT_PATH)"
  1. Set a hotkey for that. I set ctrl+F5 for that.

  2. Now simply test any code you want in Notepad++, save it and hit ctrl+F5 to run the Python code. Done.