Pyzmq in slicer python

The first one has an example of sending a numpy array as an image message.

For zmq, recent Slicer nightly versions include pip, and should be able to download a pre-compiled (wheel) version. In the slicer python prompt: import pip; pip.main(['install', 'PyZMQ'])

That said, Andras’ suggestion is still better because:

  • you need to very careful with the event loop among python, slicer, qt, etc. and this work has already been done for OpenIGTLink
  • I’m not sure what the Slicer + wheel (pypi) compatibility level is across platforms. I believe there is/was at least one weird shared library compatibility issue on linux for pyradiomics.
1 Like