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 ?
For example, in the editor, there is a test.py open:
def add(x, y):
return x+y
Then in the console:
>> add(3,4)
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 ?
All answers and suggestions are appreciated.