def _get_bokeh_html ( self , chart_obj ) : global bokeh_renderer try : renderer = bokeh_renderer p = renderer . get_plot ( chart_obj ) . state script , div = components ( p ) return script + "\n" + div except Exception as e : self . err ( e , self . _get_bokeh_html , "Can not get html from the Bokeh rendering engine" )
python bokeh plot has no data renderers
Get the html for a Bokeh chart
def _get_bokeh_html(self, chart_obj):
        """
        Get the html for a Bokeh chart
        """
        global bokeh_renderer
        try:
            renderer = bokeh_renderer
            p = renderer.get_plot(chart_obj).state
            script, div = components(p)
            return script + "\n" + div

        except Exception as e:
            self.err(e, self._get_bokeh_html,
                     "Can not get html from the Bokeh rendering engine")