Bokeh Python: Laying out multiple plots
<p>I want to array plots horizontally, use the hplot() function.
My problem is that I generate my plot names dinamically.
Dfdict is a dictionary of dataframes</p>

<pre><code>for key in dfdict.keys():
    plot[key] = BoxPlot(dfdict[key], values='oex', ...)
    filename = '{}.html'.format(str(key))
    output_file(filename)
    show(plot[key])
p = hplot(plot.values())
show(p)
</code></pre>

<p>But i have an error:</p>

<p>ValueError: expected an element of List(Instance(Component)), got seq with invalid items [[, , , , , ]]</p>

<p>Thanks</p>

<p>Please note that <code>hplot</code> is deprecated in recent releases. You should use <code>bokeh.layout.row</code>:</p>

<pre><code>from bokeh.layouts import row

# define some plots p1, p2, p3

layout = row(p1, p2, p3)

show(layout)
</code></pre>

<p>Functions like <code>row</code> (and previously <code>hplot</code>) take all the things to put in the row as individual arguments. </p>

<p>There is an entire section on layouts in the user's guide: </p>

<p><a href="http://bokeh.pydata.org/en/latest/docs/user_guide/layout.html" rel="nofollow">http://bokeh.pydata.org/en/latest/docs/user_guide/layout.html</a></p>

python dictionary bokeh