From: Albert C. <sap...@gm...> - 2019-03-13 02:03:26
|
Hi all, In Fiji--an open source java software for image processing--we have an "Script Editor" [1] capable of executing a number of languages, including jython. I've written big chunks of it and I know its codebase reasonably well. What I'd like to do is to add IDE features such as the ability to select a name and jump to its definition, be it within the same file (perhaps easier, and a good start) or some other file. I understand that the org.python.util.PythonInterpreter has methods to compile, but not execute, a bunch of code, returning a PyCode object. Are there introspection methods in the returned PyCode that could be used for the above purpose? Or how would you approach this feature? Thanks for any suggestions. Albert Cardona [1] https://github.com/scijava/script-editor -- Group Leader, HHMI Janelia Research Campus, USA. Reader (Associate Professor), Dept. Physiol. Dev. Neurosci., University of Cambridge, UK. https://albert.rierol.net https://www.janelia.org/lab/cardona-lab/ https://www.pdn.cam.ac.uk/directory/albert-cardona |