Differences between revisions 171 and 177 (spanning 6 versions)
Revision 171 as of 2011-12-15 21:40:39
Size: 7267
Editor: 198-209
Comment: new version of PyDev
Revision 177 as of 2014-01-30 18:40:32
Size: 7342
Comment: pydev has been reved.
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Line 6: Line 5:
||Name ||URL ||Version ||Last Update ||Licensing ||Supports Jython ||Remarks ||
||Dynamic Languages Toolkit ||http://www.eclipse.org/dltk/ ||4.0.0 ||June 25, 2012 ||EPL* ||? || ||
||Pydev ||[[http://pydev.org/updates|http://pydev.org]]/ ||3.3.3 ||January 27, 2014 ||EPL* ||Yes ||It also supports IronPython ||
||PythonMonkey ||http://code.google.com/p/jrfonseca/wiki/PythonMonkey ||0.1.0 ||October 21, 2007 || ||Yes || ||
||TruStudio ||http://www.xored.com/trustudio (defunct) ||1.0.1a / 1.1 ||May 18, 2005 ||no more available ||||<style="text-align:center">[[http://www.eclipse.org/proposals/dltk/|Merged]] into DLTK project ||
||JyDT ||http://www.redrobinsoftware.net/jydt/ ||1.4.15 ||June 23, 2006 ||CPL ||Jython only || ||
||EclipseColorer ||http://colorer.sf.net/ ||0.9.9 ||July 22, 2011 ||Mozilla PL / GPL / LGPL ||Yes? ||Syntax highlighting only ||
Line 7: Line 13:
||Name||URL||Version||Last Update||Licensing||Supports Jython||Remarks||
||Dynamic Languages Toolkit ||http://www.eclipse.org/dltk/ ||3.0.1||September 6, 2011||EPL*||?||||
||Pydev||http://pydev.org/ ||2.3.0||December 15, 2011||EPL*||Yes||It also supports IronPython||
||PythonMonkey||http://code.google.com/p/jrfonseca/wiki/PythonMonkey ||0.1.0||October 21, 2007|| ||Yes||||
||TruStudio||http://www.xored.com/trustudio (defunct)||1.0.1a / 1.1||May 18, 2005||no more available||||[[http://www.eclipse.org/proposals/dltk/|Merged]] into DLTK project||
||JyDT||http://www.redrobinsoftware.net/jydt/ ||1.4.15||June 23, 2006||CPL||Jython only||||
||EclipseColorer||http://colorer.sf.net/ ||0.9.9||July 22, 2011||Mozilla PL / GPL / LGPL||Yes?||Syntax highlighting only||

Line 20: Line 21:
''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 .''
Line 21: Line 23:
''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.''
Line 24: Line 25:
 * Significantly, you can use Eclipse ''bookmarking'' and create ''task'' bookmarks inside the eclipse python editor.  This is way cool.  * Significantly, you can use Eclipse ''bookmarking'' and create ''task'' bookmarks inside the eclipse python editor. This is way cool.
Line 29: Line 30:
 * Instead of importing a folder into eclipse (which copies the files into c:\eclipse\workspace\...) you can instead create a linked folder which means that you can edit files on your regular file system.  To do this, create a new folder, then when prompted, click "Advanced" and select the folder on your file system to link to.  Sometimes you have to 'refresh' the list by r.clicking on the folder and selecting 'refresh'.  * Instead of importing a folder into eclipse (which copies the files into c:\eclipse\workspace\...) you can instead create a linked folder which means that you can edit files on your regular file system. To do this, create a new folder, then when prompted, click "Advanced" and select the folder on your file system to link to. Sometimes you have to 'refresh' the list by r.clicking on the folder and selecting 'refresh'.
Line 32: Line 33:
Line 35: Line 35:
Going by the popularity on Google, (using a very unscientific method of just searching for the two words  ''python eclipse'')  it seems as though PyDev is more popular. Going by the popularity on Google, (using a very unscientific method of just searching for the two words ''python eclipse'') it seems as though PyDev is more popular.
Line 38: Line 38:
''added by KirbyUrner urnerk@python.org ''
Line 39: Line 40:
''added by KirbyUrner urnerk@python.org''

I saw a demo of this at OSCON 2004, presented by Dana Moore. Alex Totek has done the majority of the work so far, with help from Fabio Zadrozny.  pydev includes a debugger.  Dana previewed auto-completion but as of this writing it's not in the most recent release (0.5.3).  I also saw the Python shell integrated into Eclipse.  The development language for the plugin itself is Java, not Jython.
I saw a demo of this at OSCON 2004, presented by Dana Moore. Alex Totek has done the majority of the work so far, with help from Fabio Zadrozny. pydev includes a debugger. Dana previewed auto-completion but as of this writing it's not in the most recent release (0.5.3). I also saw the Python shell integrated into Eclipse. The development language for the plugin itself is Java, not Jython.
Line 44: Line 43:
Line 46: Line 44:
Line 54: Line 51:
Line 56: Line 52:
Line 58: Line 53:
Line 61: Line 55:
Line 63: Line 56:
Line 67: Line 59:
 ${resource_name}
 .
${resource_name}
Line 69: Line 63:
 ${resource_name} '''c:\\'''
 .
${resource_name} '''c:\\'''
Line 74: Line 69:
Don Coleman has written a jython code completion shell which he says he would be happy to rewrite for Eclipse.
Line 75: Line 71:
Don Coleman has written a jython code completion shell which he says he would be happy to rewrite for Eclipse.
Line 79: Line 74:
Line 81: Line 77:
How to make Jython unit tests... and see them inside Junit plugin :
[[http://www.devx.com/Java/Article/26602/1954?pf=true|here]]
and modification and completion [[http://lauploix.blogspot.com/2005/03/test-driven-development-why-using.html|here]]
How to make Jython unit tests... and see them inside Junit plugin : [[http://www.devx.com/Java/Article/26602/1954?pf=true|here]] and modification and completion [[http://lauploix.blogspot.com/2005/03/test-driven-development-why-using.html|here]]
Line 86: Line 80:

SCons is a powerful software construction tool in python, more flexible than ant and simpler than make.  It is primarily intended to manage builts for C/C++ programs.  To set up SCons as the builder from CDT, add it as a custom builder:
SCons is a powerful software construction tool in python, more flexible than ant and simpler than make. It is primarily intended to manage builts for C/C++ programs. To set up SCons as the builder from CDT, add it as a custom builder:
Line 121: Line 114:
  * this is what the existing plug-ins address, but they are incomplete   * this is what the existing plug-ins address, but they are incomplete
Line 123: Line 117:
  * use Jython as the "glue" language for extending Eclipse   * use Jython as the "glue" language for extending Eclipse
Line 129: Line 124:

Using Eclipse as a Python editor

It is not known which version of Eclipse these comments refer to, please be careful and read the release notes for the plugin you choose.

A few plugins for Eclipse are in progress that will enable Eclipse to be used as a Python IDE.

Name

URL

Version

Last Update

Licensing

Supports Jython

Remarks

Dynamic Languages Toolkit

http://www.eclipse.org/dltk/

4.0.0

June 25, 2012

EPL*

?

Pydev

http://pydev.org/

3.3.3

January 27, 2014

EPL*

Yes

It also supports IronPython

PythonMonkey

http://code.google.com/p/jrfonseca/wiki/PythonMonkey

0.1.0

October 21, 2007

Yes

TruStudio

http://www.xored.com/trustudio (defunct)

1.0.1a / 1.1

May 18, 2005

no more available

Merged into DLTK project

JyDT

http://www.redrobinsoftware.net/jydt/

1.4.15

June 23, 2006

CPL

Jython only

EclipseColorer

http://colorer.sf.net/

0.9.9

July 22, 2011

Mozilla PL / GPL / LGPL

Yes?

Syntax highlighting only

* Eclipse Public License

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

Some Features

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 .


  • These plugins provide syntax highlighting to allow for easy location of code segments with just a glance.

  • Significantly, you can use Eclipse bookmarking and create task bookmarks inside the eclipse python editor. This is way cool.

  • Lines with def are given little notches in the scroll bar, which you can click on and jump to that python function/method.

  • You can run jython or python on the current file and get the output appear in the eclipse console window.

  • You can use the Search/Grep feature of Eclipse to search through your python source code modules.
  • You can define a "working set" which is a custom list of python files that you want to have listed in the left hand Navigator window.
  • Instead of importing a folder into eclipse (which copies the files into c:\eclipse\workspace\...) you can instead create a linked folder which means that you can edit files on your regular file system. To do this, create a new folder, then when prompted, click "Advanced" and select the folder on your file system to link to. Sometimes you have to 'refresh' the list by r.clicking on the folder and selecting 'refresh'.

Which plug-in is the best?

Both PyDev and TruStudio are undergoing active development and both feature and extensive set of useful tools for developing in Eclipse. It's not hard to try either of them out, so you might as well just try them both out and see which you enjoy more.

Going by the popularity on Google, (using a very unscientific method of just searching for the two words python eclipse) it seems as though PyDev is more popular.

PyDev

added by KirbyUrner urnerk@python.org

I saw a demo of this at OSCON 2004, presented by Dana Moore. Alex Totek has done the majority of the work so far, with help from Fabio Zadrozny. pydev includes a debugger. Dana previewed auto-completion but as of this writing it's not in the most recent release (0.5.3). I also saw the Python shell integrated into Eclipse. The development language for the plugin itself is Java, not Jython.

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:

  • Name: jython

  • Tool Location: E.g. C:\jython-2.1\jython.bat

  • Working Directory: -> Browse Variables -> ${container_loc}

  • Tool Arguments: -> Browse Variables -> ${resource_name}

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

  • ${resource_name}

you would instead put

  • ${resource_name} c:\\

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,

How to make Jython unit tests... and see them inside Junit plugin : here and modification and completion here

Running SCons from CDT Eclipse

SCons is a powerful software construction tool in python, more flexible than ant and simpler than make. It is primarily intended to manage builts for C/C++ programs. To set up SCons as the builder from CDT, add it as a custom builder:

  • Select the project and edit its properties.
  • From the Builder menu on the left, select new.
  • Enter the full path to "scons.bat" file that comes with your installation.
  • Add command line targets as necessary in the box below.
  • Make sure python is setup in the default environment.

Note: Eclipse cannot currently spawn arbitrary shell programs, so even if the .py extension is registered, calling scons.py will fail from Eclipse.

There is now an Scons Builder Plugin for the Eclipse CDT.

For more information about SCons, see http://www.scons.org/

Some Eclipse features people want with Jython/Python

  • project/file management (module organization)
  • package explorer
  • file manipulation (history, compare, replace, etc)
  • collapsible code outlining
  • integrated step-through debugging
  • UML
  • refactoring tools (rename of classes and methods)
  • indentation support (tab / backtab)
  • outline with classes and methods
  • search for references (who calls method X)
  • execution of code snippets from a file being edited
  • use the Eclipse update manager for plug-in and core jython updates
  • incremental compilation of Jython
  • syntax highlighting and auto-completion
  • support for pyunit (unittest)
  • a Jython console, where one could try short snippets of code, with access to the current project classpath

Eclipse would gain

  • Python/Jython support in the editor
    • this is what the existing plug-ins address, but they are incomplete
  • better scriptable customization
    • use Jython as the "glue" language for extending Eclipse
  • runtime interactive shell for trying and testing Java classes
  • simplifies mixing Jython/Java to broaden range of problems that can be solved
  • large user base of Jython/Python programmers

Other Links

Jython

Python

IntegratedDevelopmentEnvironments - Python IDEs not based on Eclipse


CategoryJython

EclipsePythonIntegration (last edited 2014-04-17 06:07:25 by DaleAthanasias)

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