We’re working on some new Python courses and, although students will be able to use their IDE of choice, we plan to use IDLE as the default editor. To make it easier to open files directly into IDLE from Windows Explorer, I associated Python files with IDLE. As IDLE doesn’t come up as one of the default options for editing Python, it’s not as intuitive as it might be, but it’s pretty simple. Here’s how you do it:
To associate Python files with IDLE on Windows 8:
Go to a folder that contains a Python file.
Right-click on any Python file.
Next to the section that says “Opens with”, click the Change button.
You may need to select More Options.
Click on Look for another app on this PC.
Navigate to where you installed Python. For me, that’s the Python34 folder on the C drive.
Select the idle.bat file.
Click OK to close out of Properties.
Now you can open .py files in IDLE simply by double-clicking on them.
Webucator Delivers Instructor-led and Self-paced Training