Trying to center a bokeh plot in a notebook cell like holoviews does.
align keyword when creating the figure didn’t work.
Here is an example from the docs:
from bokeh.io import show from bokeh.plotting import figure fruits = ['Apples', 'Pears', 'Nectarines', 'Plums', 'Grapes', 'Strawberries'] counts = [5, 3, 4, 2, 4, 6] p = figure(x_range=fruits, plot_height=250, title="Fruit counts", toolbar_location=None, tools="", align="center") p.vbar(x=fruits, top=counts, width=0.9) p.xgrid.grid_line_color = None p.y_range.start = 0 show(p)
I would appreciate any suggestions or guidance on how to do this.