I’m in the process of migrating a bokeh-based dashboard from 2.4.3 to 3.2.2. In one of my plots, I have implemented a method to embed some simple bokeh plots inside the tooltip of another plot and I did that by following the solution provided here: Bar plot inside Tooltip - #4 by Bryan
This solution worked perfectly fine in Bokeh 2.4 but I can’t make it work with the latest version of Bokeh. For reference, the code from the link above (slightly modified for V3.2.2) is:
When I run this, I get the following error in my browser (which is the same as the error I get in my own code that used to work):
Uncaught (in promise) Error: Error rendering Bokeh model: could not find #tooltip-plot HTML tag
It looks like Bokeh.embed.embed_item is not able to find the HTML div with the given tag. Any help for how to resolve this is greatly appreciated. Thanks in advance and thanks for the awesome library!
This is an under-documented feature and I don’t really have any personal experience trying to use it any time recently, so if you encounter issues with that example, please open a new GH issue.
@Bryan thanks for the quick response! I was not aware of this solution. It’s much more elegant than what I did in the past. I was able to follow the code you shared and modified my code accordingly and it worked!
@nmasnadi This is a very under-documented feature, AFAIK there is just the one example and nothing else. Please feel free to open a GitHub Issue to propose increasing the documentation support for this feature.