These are chat archives for fiji/fiji

1st
May 2017
Philipp Hanslovsky
@hanslovsky
May 01 2017 19:39
@/all CPython REPL from ImageJ:
https://github.com/hanslovsky/imagey
Currently only on linux
Curtis Rueden
@ctrueden
May 01 2017 19:55
@hanslovsky Why does it depend on imglyb?
Also, have you been following the work of @hadim on scijava-jupyter-kernel?
Hadrien Mary
@hadim
May 01 2017 19:57
Nice work !
Would it be possible to add this as a Scijava scripting languages ?
Curtis Rueden
@ctrueden
May 01 2017 19:58
And finally @hanslovsky, have you seen scijava/scripting-cpython? Apologies if I linked you this before, but just wanted to be absolutely sure everyone here knows about it.
Philipp Hanslovsky
@hanslovsky
May 01 2017 19:59
@ctrueden It actually does not depend on imglyb, that was probably just my subconscious
I haven't seen scripting-cpython yet but I will have a look!
Hadrien Mary
@hadim
May 01 2017 20:00
@ctrueden can the cpython scripting package be run inside a JVM ? Or do you need to start it from Python ?
Philipp Hanslovsky
@hanslovsky
May 01 2017 20:01
@hadim In my case (imglyb/imagey), the JVM needs to be started from within a python process
It depends on github.com/kivy/pyjnius
Hadrien Mary
@hadim
May 01 2017 20:02
I see. So it won't be possible to add this to the Scijava kernel. But we can still make another kernel !
Philipp Hanslovsky
@hanslovsky
May 01 2017 20:03
I don't know about scijava/scripting-cpython though, as I was not aware of the pythonbridge package that it is built on.
Hadrien Mary
@hadim
May 01 2017 20:04
Numpy + ImageJ integration would make it worth it.
Philipp Hanslovsky
@hanslovsky
May 01 2017 20:06
imglyb has a numpy/imglyb compatibility layer but memory sharing works only with unsafe, i.e. copies are necessary in ImageJ 1 as ImageProcessor are backed by arrays.
Hadrien Mary
@hadim
May 01 2017 20:07
Would it work for all IJ2 images ?
Philipp Hanslovsky
@hanslovsky
May 01 2017 20:13
More complicated images, e.g. CellImg would require extra work
Hadrien Mary
@hadim
May 01 2017 20:15
Ok. Thanks. It's still a very interesting work.