Revision 16 as of 2003-05-27 07:42:01

Clear message

Using Eclipse as a Python editor

A few plugins for ["Eclipse"] are in progress that will enable Eclipse to be used as a Python IDE. Some of these are stable enough for early use:

Embedding Jython into Eclipse

Don Coleman has written a jython code completion shell which he says he would be happy to rewrite for Eclipse.

This URL was given by Don Coleman in an ASPN jython users newsgroup,

but the domain "don.freeshell.org" is non-existent (DNS Error). Any other ideas where to find this code completion shell?

-- it works now (16. May 03)

What these plug-ins actually do

Which plug-in is better?

Although the color highlighting of pe4eclipse is slightly nicer (or closer to what I am used to in pythonwin), I prefer the pyeclipse http://sourceforge.net/projects/pyeclipse/ plug-in since it supports the SHIFT-TAB de-indent keystroke. Vital! :-)

The latter plug-in (pyeclipse) also provides a 'python' perspective (although you can easily create these yourself - a perspective is just a configuration of which panels and windows you want open) which shows the console window and hides the 'launch' button (which is only for running java apps). (Note: To launch python or jython you must configure an external tool using the steps below.)

Installing the plug-ins

Unzip the plugin download and drag it into the eclipse/plugins directory, then restart eclipse.

You can switch between the plug-ins by moving one directory "out" of the plugins folder and the other "in" to the plugins folder.

Configuring Eclipse for running Python and Jython

Configuring to run regular python from within Eclipse

Instructions for this can be found in the pyeclipse forum http://sourceforge.net/forum/forum.php?thread_id=717580&forum_id=194323

However, I prefer to set my Working Directory to ${container_loc} since this lets you launch python on files that are inside folders within your project. More resilient. Here are my instructions:

Configuring to run jython from within Eclipse

Supplying paramters to your jython or python program

If you need to run an app which requires arguments, you will need to make another tool configuration (just copy the jython one) and simply add the arguments to the Tool Arguments field for example instead of just

"you would instead put"

Notice I have supplied the argument c:\\

Hope this helps -Andy Bulka http://www.atug.com/andypatterns

Other Links

["Jython"]

["Python"]

Unable to edit the page? See the FrontPage for instructions.