shell - Lightweight console/IDE for Python? -
i use ipython (or regular python shell) test python code snippets while coding, , it's been useful. 1 shortcoming of this, though, if want test multi-line segment of code, or want write multiple lines of code before running, isn't convenient have "line line". , going change of lines cumbersome because have re-type code comes after it. i'm playing groovy right , find has excellent solution problem: groovy console . write code want, it's regular editor; , hit run ctrl+r (cmd+r since i'm on mac) , runs @ once. if want change (e.g. if there errors), that's easy -- change , ctrl+r again. is there equivalent of available python? or have recommendations on way achieve similar behavior? create new file, save it, , python <filename>.py shell. that's many steps , cumbersome. eclipse may option, it's heavyweight. i'm looking lightweight can spin when want test , rid of quickly. i'd interested hear ideas/suggestions! thanks ...