라벨이 IDLE인 게시물 표시

Previous Command in Python IDLE Editor

Up arrow key does not work in Python IDLE Editor to pull out the previous command. Alt + p : Previous commend Alt + n : Next commend Let's try these! Thanks, JF

Python IDLE execution in shell, text-based tool such as linux terminal or windows powershell.

When you are using text-based system such as linux terminal or windows dos (or powerhsell), you may want open file of  python ( blahblah.py ) through IDLE. In this case, you can use below commands If python path is here C:\Python27\ In order to open IDLE, you have to open using pythonw.exe So you can do like this. C:\Python27\pythonw.exe C:\Python27\Lib\idlelib\idle.py .\blahblah.py Thanks! Have fun!

When you can not find out "Edit with IDLE" from the right click context menu

When you face this kinds of problem in Windows, you could check below two things in registry. 1. HKEY_CLASSES_ROOT\Python.File 2. HKEY_CLASSES_ROOT\*\shell First, HKEY_CLASSES_ROOT\Python.File 1> Open regedit 2> Go to 'HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command', if it does not exist create it by click right mouse button. 3> Adjust the value of key;  "[PYTHONPATH]\pythonw.exe" "[PYTHONPATH]\Lib\idlelib\idle.pyw" -e "%1" 4> And then go to 'HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit with IDLE\command'. 5> Adjust the value of key;  "[PYTHONPATH]\pythonw.exe" "[PYTHONPATH]\Lib\idlelib\idle.pyw" -e "%1" Second, HKEY_CLASSES_ROOT\*\shell 1> Open regedit 2> Go to 'HKEY_CLASSES_ROOT\*\shell' and create a key below with name of 'command'. 3> Adjust the value of key;  "[PYTHONPATH]\pythonw.exe"