☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Bokeh.client.pull_session (RuntimeError: connection to server was lost)

Community Support
laurentiupiciu
laurentiupiciu

Hello,

I’m trying to embed a bokeh application (server) that creates and renders a scatter plot into a flask application.
I followed the documentation found at bokeh.client.session — Bokeh 2.4.2 Documentation and managed to do this for a 15K 2-dim points dataset. However, when I try to trigger the bokeh application from flask using a bigger dataset (30K points), I receive the following error ( RuntimeError: connection to server was lost ): [Screenshot-2020-02-04-at-17-05-48 — ImgBB] (Issues · bokeh/bokeh · GitHub)

⌁   Link to post
Bryan
Bryan

See websocket_max_message_size under the reference docs for Server. Bokeh does not change the default max webscocket size defined by Tornado, but you can increase it by setting that paramter, if necessary.

⌁   Link to post
laurentiupiciu
laurentiupiciu

Thank you for your response.
If you refer to the parameter that could be specified in serving mode (bokeh serve . —websocket-max-message size nr_bytes), I’ve already tried with nr_bytes=10^9 (1GB) and the problem still persists.

⌁   Link to post

End of archived discussion · Replies are disabled