I've been trying to reproduce the publisher subscriber example: https://code.kx.com/wiki/Cookbook/publishsubscribe
Everything's working fine as far as it's purely q related.
I've been trying to reproduce the subscriber in a jupyter notebook using the PyQ kernel. I didn't manage to successfully get the subscriber output/feeds in a python object. Every single time, the subscriber prints in the kernel output (console).
I've also been trying to replicate in PyQ something similar to what I've seen on the java client for q without much success(https://code.kx.com/q/interfaces/java-client-for-q/)
What I would ideally like to achieve is:
- running my publisher in command line (so far that was the very easy part)
- having a python notebook that listens to the port where my publisher publishes and handles events when a new feed comes in
- a websocket solution would be outstanding
Does anyone has some pointers on how to do that on the python side? any examples?
Thanks a lot, Yael Darmon