It is completely written in python and the tkinter gui toolkit (wrapper functions for tcl / tk).. The python installer for windows contains the idle module by default.
A connection must be established whenever the shell starts or restarts.. With idle, you can quickly test snippets of code, build small projects, and debug scripts without worrying about complicated setup or heavy system requirements.