Revision 30 as of 2003-10-22 04:42:03

Clear message

Using Eclipse as a Python editor

It is not known which version of Eclipse these comments refer to.

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:

To point out the obvious, it would be nice if some of these teams would combine their efforts.

What these plug-ins actually do

The next seven sections of documentation, up to and including "Supplying parameters to your jython or python program" are contributed by Andy Bulka abulka@netspace.net.au


Generic Useful Features:

Note: The ability to run jython or python on the current file needs to be configured manually (see step 2, below) and doesn't require either of these plugins to do.

Which plug-in is better?

All three support the SHIFT-TAB de-indent keystroke.

The pyeclipse plug-in provides a python' perspective which ensures that the console window is visible and hides the 'launch' button (which is only for running java apps).

Note: once you have this perspective installed, you can switch to one of the other python plugins (see how to do this in the next section), and the "perspective view" will remain installed. In fact you can easily create a python perspective yourself, from within Eclipse (a perspective is just a configuration of what panels and windows you want open at the one time).

Installing the plug-ins

Unzip the plugin and drag the folder 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

Jython

To configure Eclipse to run jython on the current file you are editing:

Select from the menu: Run -> External Tools -> Configure -> New

then fill in the following values:

Python

Instructions for configuring to run regular python from within Eclipse 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:

Select from the menu: Run -> External Tools -> Configure -> New

then fill in the following values:

Supplying parameters 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 necessary arguments to the Tool Arguments field.

For example instead of just

you would instead put

Notice I have supplied the argument c:\\

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)

Some Eclipse features people want with Jython/Python

Eclipse would gain

Other Links

["Jython"]

["Python"]


CategoryJython

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