How can I set up "test" enviroments in Python
<p>Is there a way to execute a file but still be able to call the variables? This would help immensely in learning Python, since I could set up many different "practice" scripts and then use the console to try and modify the code to see what happens.</p>

<p>I think the technical question would be "How can I populate a namespace in Python in Eclipse and leave it open to interactions in the console?</p>

<p>Below is a screenshot showing what I'm trying to do, define a (as 1) in the editor, and then press "ctrl-alt-enter" to run the file in the console, and then call the variable from the console.</p>

<p>[Screenshot of Eclipse]</p>

<p><img src="http://i.stack.imgur.com/BlEZy.png" alt="http://i.stack.imgur.com/ExySo.png"></p>
