what i do is open idle, import the codefile i've begun to write, and then write a function: def r(): reload(codefile) then when I want to run it after changes, I just call the function manually in idle.