I've thought about this and think it would be relatively trivial to write a quick XOP to do specific jobs in the python interpreter. However, for it to be really useful one has to deal with the output that comes back from the python script/command/method. This output is obviously varied:
1) Tuple
2) List
3) Dictionary
4) Iterators
5) Variable
6) Object
7) Deque
semi adinfinitum. Probably one would want to write an API to deal with the most common IGOR objects, such as waves (numerical/text), variables, function references, etc. It's not clear to me how one would go about it. Having said all this I know Matlab has a Matlab/Java bridge. There are also projects to allow Matlab to be called from Python/Java. Both these options would be useful.
One other thought that I had was an XOP that would pipe commands to other programs and read their stdout, putting it into a string. You could implement a wide variety of things with a technique like that.
Andy
1) Tuple
2) List
3) Dictionary
4) Iterators
5) Variable
6) Object
7) Deque
semi adinfinitum. Probably one would want to write an API to deal with the most common IGOR objects, such as waves (numerical/text), variables, function references, etc. It's not clear to me how one would go about it. Having said all this I know Matlab has a Matlab/Java bridge. There are also projects to allow Matlab to be called from Python/Java. Both these options would be useful.
One other thought that I had was an XOP that would pipe commands to other programs and read their stdout, putting it into a string. You could implement a wide variety of things with a technique like that.
Andy