Please update to Spyder 2.2.3, it's much more stable and it'll fix your problem. For that just go to our Downloads page and use our Windows installer.
Notes:
Use
#%%
to separate file sections for evaluation (a la Matlab cells), instead of selecting every time the portion you want to send to the console.Please install IPython to ease this task. IPython comes now not only with a command line interface but also with a graphical one which we embedded in Spyder to take advantage of its multiple facilities (like multine inputs) which in this case will let you evaluate file portions much more easily.