473,883 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python and Eclipse

38 New Member
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 4775
bartonc
6,596 Recognized Expert Expert
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 Recognized Expert Expert
I'm thinking that you have already found this link?
Dec 11 '06 #3
jason2007
1 New Member
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 Recognized Expert Expert
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
5008
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 window to appear (Unable to instantiate view: org.python.pyeclipse.views.ConsoleView), nor can I get python to run to completion. The MSWindows Task Manager shows that eclipse has successfully started python.exe (at least a process by that name...
81
4776
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, just because retarded backwards compatibility and because the python comunity and developers refuses to consider tools as being almost as important as the language itself. What does c# .net has that python doesnt ? (significant features) --...
0
2285
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 with the CDT plugin. This plugin also has a nice GUI frontend for the GDB. I've already tried several setups, no setup seemed to work.
29
3669
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
2041
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 Extension is perfect for source code editing. Since I am really not sure how to use the debugger module, I really do not know how to add watch to variables etc. Anyone knows if this platform is a good one?
6
2344
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 checking the equivalent of the task manager, I find several instances of Python running. When I kill these instances, the responsiveness comes back. I'm not sure if there is a better place to post this, but it is Python related. Is this just an issue...
18
2954
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
4025
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 is no longer obvious to me that one would be much more productive in python for medium sized projects. Sure, all that Java static typing can be painful, but Eclipse takes
20
6061
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
1804
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 FoxPro 9.0 were: a) Intellisense (tells you what classes/methods are available and what variables go into a function) b) Code Completion (guesses your code after four letters) c) Data-Orientation; multiple data sessions can be open, data can be...
0
9933
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9787
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10734
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10838
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9568
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7119
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5794
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.