bagu
bagu6mo ago

I've been experimenting with using

I've been experimenting with using asyncio to listen to a stream of data, have a variable updated from the stream and trigger re-execution of cells depending on that variable. I've not been able to make it work (basing my work off of what I can read in this PR), and I wonder, is it even possible?
3 Replies
Myles Scolnick
Myles Scolnick6mo ago
how are you listening/streaming? i.e. polling or websocket?
bagu
baguOP6mo ago
for this experiment I've been using a websocket connection through a python client that exposes a asyncio interface
Myles Scolnick
Myles Scolnick6mo ago
you could try using mo.state() to imperatively set_state