Issue with construct_color_bar

Hi, I am trying to learn how to create heatmaps with Bokeh. To start I am just trying to run the code from the heatmap example in the docs. However, when I run the code I get the following error:

---> 43 p.add_layout(r.construct_color_bar(

AttributeError: 'GlyphRenderer' object has no attribute 'construct_color_bar'

Can anyone tell me what is going wrong and how I can create the color bar? Thanks

construct_color_bar is a fairly recent addition, your installed version of Bokeh is too old.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.