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

Active tab should be in view on render #11284

Closed
philippjfr opened this issue May 17, 2021 · 1 comment · Fixed by #11391
Closed

Active tab should be in view on render #11284

philippjfr opened this issue May 17, 2021 · 1 comment · Fixed by #11391

Comments

@philippjfr
Copy link
Contributor

When you display Tabs and set a specific specific tab to be active that tab should be in view by default.

from bokeh.io import show
from bokeh.models import Panel, Tabs
from bokeh.plotting import figure

tabs = []
for i in range(8):
    p1 = figure(plot_width=300, plot_height=300)
    p1.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, i], size=20, color="navy", alpha=0.5)
    tab = Panel(child=p1, title=f"circle {i}")
    tabs.append(tab)
pn.panel(Tabs(tabs=tabs, active=6))

Currently it is instead hidden and you have to use the arrows to see the currently active tab:

Screen Shot 2021-05-17 at 7 28 38 PM

Expected:

Screen Shot 2021-05-17 at 7 29 02 PM

Tested with Bokeh version: 2.3.2

@philippjfr
Copy link
Contributor Author

Thanks @mattpap!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants