Description
I'd like to know how to display an ipyvolume figure in a bokeh server app.
Ideally I want to run a bokeh server app that shows users a bokeh scatterplot; and then when any of the points are clicked a new ipyvolume rendering (based on data related to the scatter point) is displayed or updated beside it.
Thanks to the ipyvolume documentation, I know how to embed linked bokeh and ipyvolume plots to a standalone html page. I'm not sure how to extend this idea to the bokeh server, though.
I've uploaded a minimal example you can run here.
Attempting to pass an ipyvolume figure, or the ipyvolume current container into a bokeh layout:
my_layout = layout([[fig]])
my_layout = layout([[ipv.gcf()]])
my_layout = layout([[ipv.gcc()]])
produces this error: ValueError: Only LayoutDOM items can be inserted into a layout.
Attempting to wrap the ipyvolume current container inside an ipywidgets or bokeh widgetbox:
my_layout = layout([[ipywidgets.HBox(ipv.gcc())]])
my_layout = layout([[bokeh.layouts.WidgetBox(ipv.gcc())]])
produces this error: ValueError: expected an element of List(Instance(Widget)), got seq with invalid items [VBox...
How should I be doing this instead?