3 ms·
What I did when I had a similar problem was to have a completely separate visualization program and pass data messages to it (using Celery and RabbitMQ). But th
by MattConfluence 9y ago
What I did when I had a similar problem was to have a completely separate visualization program and pass data messages to it (using Celery and RabbitMQ). But that was in a setting where I was already using Celery for other tasks. Setting up a message queue for just visualization feels a bit over-engineered. Maybe you can just write to a text file, or a Sqlite db, and have the visualization program poll for changes.
- oneweekwonder 9y agoRabbitmq or redis will already be in apt or yum so a simple sudo apt-get install rabbitmq-server # or redis pip install celery You are ready to use their example[0] from celery import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The idea of a mq might feel over-engineered. But the deployment and use is actually straight forward. [0]: http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html#application http://docs.celeryproject.org/en/latest/getting-started/firs...