f14f475431d1a686ba2d29c4fc90ec649670f7fa,bokeh/embed.py,,notebook_div,#Any#Any#Any#,329
Before Change
if notebook_comms_target:
item["notebook_comms_target"] = notebook_comms_target
else:
notebook_comms_target = ""
script = _wrap_in_onload(DOC_JS.render(
docs_json=serialize_json(docs_json),
render_items=serialize_json(render_items)
))
js = AUTOLOAD_NB_JS.render(
comms_target = notebook_comms_target,
js_urls = [],
css_urls = [],
js_raw = [script],
css_raw = "",
elementid = item["elementid"]
)
div = _div_for_render_item(item)
return (js, div)
After Change
"""
(js, div) = notebook_content(model, notebook_comms_target=notebook_comms_target, theme=theme)
html = NOTEBOOK_DIV.render(
plot_script = js,
plot_div = div,
)
return encode_utf8(html)
def file_html(models,
resources,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: bokeh/bokeh
Commit Name: f14f475431d1a686ba2d29c4fc90ec649670f7fa
Time: 2017-08-17
Author: lcanavan@continuum.io
File Name: bokeh/embed.py
Class Name:
Method Name: notebook_div
Project Name: bokeh/bokeh
Commit Name: f1bc5b054e29f6d8e948fe7222936a2b0a975535
Time: 2019-10-07
Author: mattpap@gmail.com
File Name: bokeh/server/views/autoload_js_handler.py
Class Name: AutoloadJsHandler
Method Name: get
Project Name: bokeh/bokeh
Commit Name: f1bc5b054e29f6d8e948fe7222936a2b0a975535
Time: 2019-10-07
Author: mattpap@gmail.com
File Name: bokeh/embed/standalone.py
Class Name:
Method Name: autoload_static