Given that you mention the core bundle, I suppose adding bokeh-widget.js should help
I guess that was confusing, I did not actually mean the core bundle but the individual modules in lib as you so nicely outlined in Configuring type definitions when depending on bokehjs npm package - #2 by mateusz.
I don’t particularly mind if I have to register all models at all times.
For some context, I was attending the Jupyter Dashboarding workshop and in order to ensure that Bokeh is well supported in that ecosystem I’ve started writing an IPython/Jupyter widget which a) bundles and imports bokehjs from npm and 2) performs bi-directional communication in Jupyter just like bokeh server does. My prototype is already working and by manually doing something like this:
import {Div} from "@bokehjs/models/widgets"
import {overrides} from "@bokehjs/base"
overrides["Div"] = Div as any
I can get widget models to render as well, but would like to find a nice way to do this more easily.