As there are some people who are unsatisfied with the Jython Scripting wiki page (including me), I want to rewrite it. Before I start, this post will outline my concept of the new wiki page.
The current wiki page
There is some information about some specifics of Jython compared to CPython. I will keep this in a more compact form. Interaction between Jython and ImageJ/Java is important, too. This will still be part of the new wiki page.
The new wiki page
Next step will be a short introduction to the language. I don’t want to write a tutorial on how to program in general, but rather highlight what is special about python (list comprehension, generators, first class functions) and how to use them in ImageJ.
Another section will be on using modules, where I will describe my solution for this. I will write a step by step guide on how to use the minimal-ij1-plugin to build a Jar-File from a package of Jython modules.
In my opinion it’s best to use minimal examples to explain some tricks. For example
create_selection_dialog() from my HelperDialogs.py module can be used to explain default parameters, the
enumerate function, list comprehension and how to handle lists as return values. I don’t want to write examples that are more complex than this one.