Python (Jython) Interpreter

History: 2013/02/25: First release
2013/03/20: Added getArgument() function
Requires: ImageJ 1.47m or later
Source: Jython.java
Installation: This 8MB plugin (Jython.jar), which includes Jython 2.5.3, is automatically downloaded to Image/plugins/jars the first time you run a Jython (".py") script.
Description: This is the plugin and Jython 2.5.4 interpreter that implement the macro editor's Macros>Evaluate Python command. For more information about Jython (an implementation of Python written in Java), go to www.jython.org.

The following import statements are automatically added to Jython scripts:

    from ij import *
    from ij.gui import *
    from ij.process import *
    from ij.measure import *
    from ij.util import *
    from ij.plugin import *
    from ij.plugin.filter import *
    from ij.plugin.frame import *
    from ij.io import *
    from java.lang import *
    from java.awt import *
    from java.awt.image import *
    from java.awt.geom import *
    from java.util import *
    from java.io import *
See Also: Example Python Scripts
Python Scripting Tutorial
Jython for ImageJ by Example
Jython Scripting
eval("python",script) macro function
Macro_Runner.runPython(script,arg) method
Macro_Runner.runMacroFile(name,arg) method
)