
Hi, Brian recommended to post it here:
Bokehlab is a thin wrapper over Bokeh that makes it easier to use Bokeh in Jupyter notebook.
I’m trying to make my library that previously worked with 2.4.3 work with 3.x, too.
Originally (in 2.4.3) I extended the Figure class with
from bokeh.plotting.figure import Figure as BokehFigure
class Figure(BokehFigure):
__subtype__ = "BokehlabFigure"
__view_model__ = "Plot"
__view_module__ = "bokeh.models.plots"
With the release of 3.0 this no longer works. I tried the following:
from bokeh.plotting._figure import figure as BokehFigure
class BokehlabFigure(BokehPlot):
__subtype__ = "BokehlabFigure"
__view_model__ = "Plot"
__view_module__ = "bokeh.plotting._figure"
It fails with a warning
Warning: Duplicate qualified model declaration of 'Plot'. Previous definition: <class 'bokeh.models.plots.Plot'>
What does this warning mean and what is the best way to workaround it?


