Good afternoon!
For the past several days, I have been getting the following error when trying to instantiate a BokehModel from jupyter_bokeh:
(docs_json, [render_item]) = standalone_docs_json_and_render_items([model], True)
TypeError: standalone_docs_json_and_render_items() takes 1 positional argument but 2 were given.
That function (from bokeh.embed.util) is called when the BokehModel instantiation runs the following line from update_from_model:
self.render_bundle = self._model_to_traits(model)
Looking at the documentation for standalone_docs_json_and_render_items, the function setup is:
standalone_docs_json_and_render_items(models: 'Model | Document | Sequence[Model | Document]', *, suppress_calback_warning: 'bool' = False)
It seems to me that the issue could be fixed by just having the function call label the Boolean argument like so:
(docs_json, [render_item]) = standalone_docs_json_and_render_items([model], suppress_callback_warning=True)
If you agree that this would fix the issue without causing any problems, it would be much, much appreciated!