@potholiday with the preferences @elextr mentioned to change, when you press F5 (or Build->Execute) in Geany it will execute your script in the terminal tab. What about that doesn't do what you want? It's not the _interactive_ Python shell, but it's what you describe and how any IDEs work.