☰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

How to - write entire document to disk - while using Bokeh serve?

Community Support
ceremony
ceremony

Hi,
I’ve been using Bokeh for quite some time now, excellent project - and I also pitch in financially.

I just had a simple question - I’m trying to dump my entire Bokeh document during an interactive session with “bokeh serve”, but I can’t seem to be able to do it.

Both output_file, and save() both throw warnings that they are ignored/disabled during interactive mode.

Now I’m not expecting that the dumped document is interactive, but I have tons of figures on it and I just want it saved down.

I would appreciate any help.

Thank you.
Ceremony

⌁   Link to post
Bryan
Bryan

@ceremony Thank you very much for your kind words and support. If PNGs would suffice for your needs, you should definitely be able to use export_png to generate static images of the app content. Otherwise, it’s possible calling file_html and saving the resulting HTML text yourself will also work (seems to from a quick test).

⌁   Link to post

End of archived discussion · Replies are disabled