Getting bokeh script from server_document (like components(...))

Hi all,
I’m trying to get Vue working with bokeh here, and have so far managed to do it by returning ‘script, div = components(plot, wrap_script=False)’, but am now at the stage where I want to do it with more complicated plots in different python files.
The issue that I’m dealing with is that when I try to use server_document it returns a block of HTML code, wrapped in a script tag, while I only want the contents of the url in (like what I have with the components function), how can I achieve something like this?

I’m fairly new to using tools like these, not entirely my field, so thanks for the help!

server_document always returns a script tag. If that’s not what you want you will have to look at its source and copy the parts you want: