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
python==3.10.16
bokeh==3.9.1
panel==1.9.3
holoviews==1.21.0
Description of expected behavior and the observed behavior
Bokeh figures are collapsing (in size) when rendered (via pn.panel(fig).show()) when the figures are placed in Bokeh Tabs wrapped in Bokeh column. They should be rendered correctly.
All works fine if one uses pn.Column instead of bokeh.layouts.column or uses bokeh.plotting.show for rendering!
Complete, minimal, self-contained example code that reproduces the issue
from bokeh.plotting import figure, show
from bokeh.models import TabPanel, Tabs
from bokeh.layouts import row, column
import panel as pn
x = list(range(11))
y0 = x
y1 = [10 - i for i in x]
y2 = [abs(i - 5) for i in x]
# create three plots
s1 = figure(background_fill_color="#fafafa", aspect_ratio=1)
s1.scatter(x, y0, size=12, alpha=0.8, color="#53777a")
s2 = figure(background_fill_color="#fafafa", aspect_ratio=1)
s2.scatter(x, y1, size=12, alpha=0.8, color="#c02942")
s3 = figure(background_fill_color="#fafafa", aspect_ratio=1)
s3.scatter(x, y2, size=12, alpha=0.8, color="#d95b43")
figsList = [row(s1, Tabs(tabs=[TabPanel(child=s2, title="s2"), TabPanel(child=s3, title="s3")]), height=800, sizing_mode="inherit"),
row(s1, Tabs(tabs=[TabPanel(child=s2, title="s2"), TabPanel(child=s3, title="s3")]), height=800, sizing_mode="inherit")]
# show(column(*figsList)) # Works well
# pn.panel(pn.Column(*figsList)).show() # Works well!
pn.panel(column(*figsList)).show() # Not working as expected!
Screenshots or screencasts of the bug in action
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
Description of expected behavior and the observed behavior
Bokeh figures are collapsing (in size) when rendered (via
pn.panel(fig).show()) when the figures are placed in Bokeh Tabs wrapped in Bokeh column. They should be rendered correctly.All works fine if one uses pn.Column instead of bokeh.layouts.column or uses bokeh.plotting.show for rendering!
Complete, minimal, self-contained example code that reproduces the issue
Screenshots or screencasts of the bug in action