<jupyter_start><jupyter_text>This example demonstrates how to combine multiple columns of widgets into layout an overall layout.<jupyter_code>quant = [None, 'mpg', 'cyl', 'displ', 'hp', 'weight', 'yr']
cat = [None, 'origin', 'mfr', 'yr']
combined = quant+cat[1:]

x = pn.widgets.Select(name='x', value='mpg', options=combined)
y = pn.widgets.Select(name='y', value='cyl', options=combined)
color = pn.widgets.Select(name='color', options=combined)
facet = pn.widgets.Select(name='facet', options=cat)

@pn.depends(x.param.value, y.param.value, color.param.value, facet.param.value)
def plot(x, y, color, facet):
    cmap = 'Category10' if color in cat else 'viridis'
    return autompg_clean.hvplot.scatter(
        x, y, color=color, by=facet, subplots=True, padding=0.1, width=None, height=None, cmap=cmap).opts(
        'Scatter', min_height=300, responsive=True, min_width=200)

pn.Column(
    '### Auto MPG Explorer', 
    plot,
    pn.Row(pn.WidgetBox(x, y, color), pn.WidgetBox(facet)),
    width_policy='max'
).servable()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17280453257790368, 'fraction_numerical': 0.010387157695939566, 'mean_word_length': 5.385542168674699, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '117451', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 410, 'n_tokens_neox': 388, 'n_words': 86, 'path': 'examples/gallery/layout/plot_with_columns.ipynb', 'repo_name': 'rupakgoyal/panel-', 'size': '1059'}