title: [Python IDE]Call a function defined in the .py file in console
body: <p>Is it possible to configure PyDev-in-Eclipse or PyCharm in order to be able to call a function defined in the editing .py file in the console ?</p>
  
  <p>For example, in the editor, there is a <em>test.py</em> open:</p>
  
  <pre><code>def add(x, y):
      return x+y
  </code></pre>
  
  <p>Then in the console:</p>
  
  <pre><code>&gt;&gt; add(3,4)
  </code></pre>
  
  <p>I noticed that it is possible in Spyder. However, by default, in PyCharm and PyDev, the console will return "No name 'add' defined" error.
  My question is: is it possible to achieve this interaction between editor and console in PyCharm or PyDev ? </p>
  
  <p>All answers and suggestions are appreciated.</p>