paquo icon indicating copy to clipboard operation
paquo copied to clipboard

Control qupath interactively from python

Open sdvillal opened this issue 5 years ago • 9 comments

This is easy on linux, almost impossible on macos, I have not tried on windows.

As an alternative, there are OS-dependent libraries that allow to instrument GUIs (for example, back in the day I had mild success instrumenting ImageScope using pywinauto).

sdvillal avatar Jul 17 '20 06:07 sdvillal

Hmmm. We should definitely go with something that'll be supported on all platforms.

I've been looking at qupath's scripting interface and I believe it should be possible to write a minimal qupath plugin that just offers all of the scripting interface via libzmq.

ap-- avatar Jul 17 '20 06:07 ap--

I also thought about this, I initially thought it is not so simple. Having an "API server" in a running QuPath instance would require exposing quite a bit of non-trivial APIs (so we would need to somewhat marshall java object specifications back and forth).

sdvillal avatar Jul 17 '20 06:07 sdvillal

I was thinking (as a production ready 🤣 hack) if it's possible to generate groovy on the python side, transmit via some messaging layer and execute in the qupath plugin.

ap-- avatar Jul 17 '20 06:07 ap--

Oh, so nasty, I like it!

A project we can look at is: https://github.com/imagej/pyimagej

sdvillal avatar Jul 17 '20 06:07 sdvillal

Oh, so nasty, I like it!

We'll just need some perfume for the code smell 😄

A project we can look at is: https://github.com/imagej/pyimagej

nice! very interesting.

ap-- avatar Jul 17 '20 07:07 ap--

there is also imglyb and scijava, from the same people; still I prefer to have switched to jpype

sdvillal avatar Jul 17 '20 07:07 sdvillal

(itemized from #4 )

ap-- avatar Jul 24 '20 10:07 ap--

Ha someone did the groundwork: https://github.com/arjvik/QuPath-Scripts

ap-- avatar Jul 27 '20 14:07 ap--

I had not seen that, good catch!

sdvillal avatar Jul 28 '20 08:07 sdvillal