how can i render bokeh in front-end

Then the target id can be controlled on the JavaScript side:

item = JSON.parse(item_text);
Bokeh.embed.embed_item(item, "myplot");

I’m now getting the item from the back end this way, but I wanted to render bokeh only on the front end.

How do you create the item data in the front end, or is there some other API to render it?

The content of the document Developing with JavaScript appears to have been removed from functionality since version 1.0, including Bokeh.Plotting Bokeh.Charts…