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

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

1 Like

@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).

Wonderful - works like magic, saved down the entire document into the disk (for archival purposes) sans interaction (of course).

Thanks for the prompt help.
Ceremony

1 Like