472,378 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 software developers and data experts.

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 4639
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

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

Similar topics

3
by: G.A. | last post by:
I've installed Eclipse 3.0 and the latest pyeclipse. I can get the editor run - at least I think so, because it seems to do reasonable syntax highlighting. However, I can't get the Python console...
81
by: julio | last post by:
Sorry but there is no another way, c# .net and mono are going to rip python, not because python is a bad lenguage, but because is to darn old and it refuses to innovate things, to fix wrong things,...
0
by: peter | last post by:
Hello all, I would like to debug my python libraries, written in c++, with GDB (gnu debugger) I'm using the mingw compiler in a windows environment. As development environment I use eclipse...
29
by: seberino | last post by:
I'm trying to move beyond Emacs/Vim/Kate and was wondering if Eclipse is better and if it is the *best* IDE for Python. Should I leave Emacs and do Python coding in Eclipse? Chris
16
by: Sullivan WxPyQtKinter | last post by:
IDLE is no longer satisfactory for me. Other IDEs make me very confused. Really do not know which one to use. I use WinXP sp2 for current development. So far as I know, Eclipse + PyDev + PyDev...
6
by: Stan Cook | last post by:
I've been trying to use Eclipse with Python on Linux for a while and have noticed something odd. After running the code or debugging a few times, its responsiveness gets really bad. Upon...
18
by: stylecomputers | last post by:
Hi All, What do you find the best IDE for creating web applications in Python is? Preferably FOS IDE. Cheers
16
by: Amir Michail | last post by:
Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it...
20
by: ram.rachum | last post by:
Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea?
7
by: Anthony | last post by:
Hi, I'm a FoxPro programmer, but I want to learn python before it's too late. I do a lot of statistical programming, so I import SPSS into python. In my opinion, the best features of Visual...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.