def autoload_static(model, resources, script_path):
 model = _check_one_model(model)
 with _ModelInDocument(model):
  (docs_json, render_items) = _standalone_docs_json_and_render_items([model])
 script = _script_for_render_items(docs_json, render_items, wrap_script=False)
 item = render_items[0]
 js = _wrap_in_onload(AUTOLOAD_JS.render(js_urls=resources.js_files, css_urls=resources.css_files, js_raw=(resources.js_raw + [script]), css_raw=resources.css_raw_str, elementid=item['elementid']))
 tag = AUTOLOAD_TAG.render(src_path=script_path, elementid=item['elementid'], modelid=item.get('modelid', ''), docid=item.get('docid', ''))
 return (encode_utf8(js), encode_utf8(tag))

def autoload_static ( model , resources , script_path ) : model = _check_one_model ( model ) with _ModelInDocument ( model ) : ( docs_json , render_items ) = _standalone_docs_json_and_render_items ( [ model ] ) script = _script_for_render_items ( docs_json , render_items , wrap_script = False ) item = render_items [ 0 ] js = _wrap_in_onload ( AUTOLOAD_JS . render ( js_urls = resources . js_files , css_urls = resources . css_files , js_raw = ( resources . js_raw + [ script ] ) , css_raw = resources . css_raw_str , elementid = item [ 'elementid' ] ) ) tag = AUTOLOAD_TAG . render ( src_path = script_path , elementid = item [ 'elementid' ] , modelid = item . get ( 'modelid' , '' ) , docid = item . get ( 'docid' , '' ) ) return ( encode_utf8 ( js ) , encode_utf8 ( tag ) )
return javascript code and a script tag that can be used to embed bokeh plots .