Render bokeh by executing script returned by server_document
What should I do bokeh.min.js Put it in my static directory instead of the default installation directory of bokeh
Reference didn’t understand
def signal_scatter_main(request: HttpRequest) -> HttpResponse:
script = server_document(
url=request.build_absolute_uri("/bokeh_apps/signal_scatter_handler"), # 此处配置与bokeh_apps.autoload中请求地址保持一致
arguments=dict(request.GET.dict(), **request.POST.dict()) # bokeh只接受不带参数的url因此处理django参数,处理django参数数据
)
return HttpResponse(jsonUtil.http_response_success(script))