Monday, 19 August 2013

PyDev Interactive Python Shell in Eclipse

PyDev Interactive Python Shell in Eclipse

I've been using Wing IDE for python programming and I am trying to switch
to Eclipse, PyDev.
When I run my code in Wing IDE, after finishing the execution the console
goes right back to the interactive shell and I can continue on testing,
but I don't know how to do this in Eclipse. I'm not sure if I am
describing my problem properly so I'll use an example:
Let's say I had a simple source code that looked like this (e.g. test.py):
print("hello")
When I run this in Wing IDE by clicking that green arrow, the console
would look like this after execution:
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]
Type "help", "copyright", "credits" or "license" for more information.
[evaluate untitled-1.py]
hello
>>>>
And I can keep doing whatever on the shell and it would know my code
(defined functions etc.). But when I do the same thing in Eclipse, the
console would simply look like this:
hello
and I have to click "Remove All Terminated Launches" button to go back to
the shell.
Can this be done in Eclipse?

No comments:

Post a Comment