Hey guys, I’ve got a holoviews / bokeh / tornado app that works well until I have multiple users. Then I get a RuntimeError from the bokeh server:
_pending_writes should be non-None when we have a document lock, and we should have the lock when the document changes
Source code is here: https://github.com/foobarbecue/ultrahelicorder .
There are just two short files:
slurp.py has the data collection thread and running
serve.py starts the server. There’s a demo running at http://sei.sm:8121 and the first person to look at it will see seismic data but the second will get a 500 error.
I think it might be because I’m adding a next tick callback for each user in rapid succession. I was hoping that adding
@without_document_lock as explained here would solve it, but no such luck.
Any idea what I’m doing wrong?
edit: I just remembered you’ll have to remove
'apply_xrange': False, 'apply_yrange': True, – these are options I added in my own fork of holoviews.