Re:Python Graph Gallery
by MattConfluence on Monday October 16, 2017 @09:36AM
(#15483041)
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.
[ Parent
| on HN ]
Re:Python Graph Gallery
by oneweekwonder on Monday October 16, 2017 @10:06AM
(#15483268)
Rabbitmq 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/firs...