bokeh plot graph horizontally

I’m plotting graph as

script, div = components(p)

return render(request, 'index.html', {"the_script": script, "the_div": div})

And in index.html I have

        {{the_script | safe}}
{{the_div | safe}}

Now I’m trying to plot 2 graphs horizontally I see option to use such as components(p1, p2) and I added another div tag underneath current one. But it plots graph vertically how can I plot them horizontally.