Jython Jyson in ImageJ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Jython Jyson in ImageJ?

Greg
Hi,

right now I am running in numerous problems when trying to serialize the data with python 2.5 pickle. I found in another post

http://imagej.1557.x6.nabble.com/Fwd-Serializing-dict-in-jython-script-td5014996.html

that one should use json instead. I woul happily want to do that, although I don't know how to import the json module into ImagJ's jython scripts. I found an implementation which should work with jython here:

http://opensource.xhaus.com/projects/jyson

How do 'install' that into ImageJ ?

Best,
Gregor
Reply | Threaded
Open this post in threaded view
|

Re: Jython Jyson in ImageJ?

Greg
Ok...the 4th answer here made json available for me from within ImageJ's jython:

http://stackoverflow.com/questions/21287905/decoding-json-in-jython-using-only-default-libraries

G
Reply | Threaded
Open this post in threaded view
|

Re: Jython Jyson in ImageJ?

ctrueden
Hi Greg,

It would be very helpful if you could add a section to the Jython Scripting
page explaining how to depend on 3rd party libraries that way!

   http://imagej.net/Jython_Scripting

Thanks,
Curtis

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/


On Fri, Feb 5, 2016 at 3:11 AM, Greg <[hidden email]> wrote:

> Ok...the 4th answer here made json available for me from within ImageJ's
> jython:
>
>
> http://stackoverflow.com/questions/21287905/decoding-json-in-jython-using-only-default-libraries
>
> G
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Jython-Jyson-in-ImageJ-tp5015543p5015546.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Jython Jyson in ImageJ?

Albert Cardona-2
I guess it is a similar approach to the one outlined here:

http://fiji.sc/Jython_Scripting#Importing_other_.py_scripts_.28modules.29

Albert

2016-02-05 9:16 GMT-05:00 Curtis Rueden <[hidden email]>:

> Hi Greg,
>
> It would be very helpful if you could add a section to the Jython Scripting
> page explaining how to depend on 3rd party libraries that way!
>
>    http://imagej.net/Jython_Scripting
>
> Thanks,
> Curtis
>
> --
> Curtis Rueden
> LOCI software architect - http://loci.wisc.edu/software
> ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
> Did you know ImageJ has a forum? http://forum.imagej.net/
>
>
> On Fri, Feb 5, 2016 at 3:11 AM, Greg <[hidden email]> wrote:
>
> > Ok...the 4th answer here made json available for me from within ImageJ's
> > jython:
> >
> >
> >
> http://stackoverflow.com/questions/21287905/decoding-json-in-jython-using-only-default-libraries
> >
> > G
> >
> >
> >
> > --
> > View this message in context:
> >
> http://imagej.1557.x6.nabble.com/Jython-Jyson-in-ImageJ-tp5015543p5015546.html
> > Sent from the ImageJ mailing list archive at Nabble.com.
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--
http://albert.rierol.net
http://www.janelia.org/lab/cardona-lab
http://www.ini.uzh.ch/~acardona/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Jython Jyson in ImageJ?

Greg
In reply to this post by ctrueden
Hi Curtis,

ok, I will try to do that!

Best,
Greg
Reply | Threaded
Open this post in threaded view
|

Re: Jython Jyson in ImageJ?

Greg
Hello Curtis,

I wrote a corresponding little section at the jython wiki, I put it under 'Tips and Tricks'. It's my first time editing a wiki, so suggestions/comments are welcome ;)

Best,
Greg