Changed API: bokeh.models.widgets.Tabs and Panel gone

The line

from bokeh.models.widgets import Panel, Tabs

used to work with bokeh < 3.0, however both no longer exist in the API in the latest release. Usage is as in bokeh.models.widgets.panels — Bokeh 1.0.2 documentation. What would be the new way of creating tabs and panels?

I assume it is now, from the docstrings,

from bokeh.models.layouts import TabPanel, Tabs

from bokeh.models.widgets import Panel, Tabs

This import had been deprecated for a few years and removed in bokeh 3.0. The renaming of Panel to TabPanel wasn’t communicated beforehand though via a deprecation.

Note also there’s migration guide available.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.