Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using pn.bind raises a bokeh validation warning #7614

Open
Azaya89 opened this issue Jan 14, 2025 · 0 comments
Open

Using pn.bind raises a bokeh validation warning #7614

Azaya89 opened this issue Jan 14, 2025 · 0 comments

Comments

@Azaya89
Copy link

Azaya89 commented Jan 14, 2025

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)

Software Version Info
panel = 1.5.5
bokeh = 3.5.2
hvplot = 0.11.2
pandas = 2.2.2

Description of expected behavior and the observed behavior

when using pn.bind in a plot, the plot outputs correctly but there is a bokeh validation warning about the sizing mode.

Complete, minimal, self-contained example code that reproduces the issue

import pandas as pd
import panel as pn
import hvplot.pandas # noqa

pn.extension()

df = pd.DataFrame({'x': [1, 2, 3], 'y': [1, 2, 3]})

def plot_data(color='blue'):
    return df.hvplot.scatter(x='x', y='y', color=color)


colors = pn.widgets.Select(options=['red', 'green', 'yellow'])
plot = pn.bind(plot_data, color=colors) # This is what raises the warning
#plot = plot_data() # Does not raise any warning

template = pn.Column(colors, plot)

template.show()

Stack traceback and/or browser JavaScript console output

WARNING:bokeh.core.validation.check:W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: Column(id='7687d1bc-ccd5-44e6-acf8-c1d0830d18fd', ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant