469,921 Members | 2,110 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,921 developers. It's quick & easy.

Python and Eclipse

38
Hi!

Does anyone here have experience with Python in Eclipse environment? I have downloaded the Pydev plug-in for Eclipse. I like the editor and I find it very useful to be able to add files in a project and easily navigate between the files. I can start a Python interactive window. However, the Python interactive window does not keep varibles in memory from the Python scripts that I run. Also, when I debug I want to be able to set a breakpoint and use the interactive window to test code when I reach the breakpoint. I can go to the interactive window while debugging, but I does not keep the execution in memory.

Is there some way to execute a Python script in Eclipse and use the interactive window in a similar way as for PythonWin? Is there any other plug-in than Pydev that will allow this? Or can you recommend another IDE that is as simple to use as PythonWin regarding the interactive window, but will allow to create projects with a simple navigate view.

Any comments will be helpful.

Best regards
/Fredrik
Dec 10 '06 #1
4 4441
bartonc
6,596 Expert 4TB
I'll bet that if you look in Task Manager, you will see that there is a second (or maybe third) python process running (one for the shell - interpreter window - and one for the program that you are debugging). If (like IDLE) there is an option for something like "don't use separate thread", then all namespaces get shared. You end up with all the variables of the interpreter visible with your variables (not ideal, but it works). A really good environment will provide all these things that you want - break points (although I just use print statements) AND introspection (ability to look inside all variables) - here print statements work for me also. I haven't looked at Eclipse yet, but may take a peek soon. I hape someone on this forum has the experience that you are looking for. Good luck - "talk" to you soon,
Barton
Dec 10 '06 #2
bartonc
6,596 Expert 4TB
I'm thinking that you have already found this link?
Dec 11 '06 #3
Hi!
I am looking for the same thing as foffens. I only found a commercial extension which porbably has the desired solution. Did anybody have any other ideas/hints?
Comments very welcomed!
Jason




Hi!

Does anyone here have experience with Python in Eclipse environment? I have downloaded the Pydev plug-in for Eclipse. I like the editor and I find it very useful to be able to add files in a project and easily navigate between the files. I can start a Python interactive window. However, the Python interactive window does not keep varibles in memory from the Python scripts that I run. Also, when I debug I want to be able to set a breakpoint and use the interactive window to test code when I reach the breakpoint. I can go to the interactive window while debugging, but I does not keep the execution in memory.

Is there some way to execute a Python script in Eclipse and use the interactive window in a similar way as for PythonWin? Is there any other plug-in than Pydev that will allow this? Or can you recommend another IDE that is as simple to use as PythonWin regarding the interactive window, but will allow to create projects with a simple navigate view.

Any comments will be helpful.

Best regards
/Fredrik
Feb 27 '07 #4
bartonc
6,596 Expert 4TB
Hi!
I am looking for the same thing as foffens. I only found a commercial extension which porbably has the desired solution. Did anybody have any other ideas/hints?
Comments very welcomed!
Jason
If eclipse doesn't have the "import module into shell" command (the way that Boa Constructor does), you can:
>>> from whateverModule import *
then call any function or create classes in the shell and have all the values available.
Feb 27 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by G.A. | last post: by
81 posts views Thread by julio | last post: by
29 posts views Thread by seberino | last post: by
16 posts views Thread by Sullivan WxPyQtKinter | last post: by
6 posts views Thread by Stan Cook | last post: by
18 posts views Thread by stylecomputers | last post: by
16 posts views Thread by Amir Michail | last post: by
20 posts views Thread by ram.rachum | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.