f14f475431d1a686ba2d29c4fc90ec649670f7fa,bokeh/embed.py,,notebook_div,#Any#Any#Any#,329
Before Change
item = render_items[0]
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)
def file_html(models,
resources,
title=None,
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,
title=None,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 58f057c0dd1b28cb388c3fd9538bc67289c4e15e
Time: 2015-08-26
Author: nlavine@google.com
File Name: perfkitbenchmarker/benchmarks/fio_benchmark.py
Class Name:
Method Name: GenerateJobFileString
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: bd120f0c54cbde5ad23a061d9fdebacbbd45954f
Time: 2015-09-04
Author: nlavine@google.com
File Name: perfkitbenchmarker/benchmarks/fio_benchmark.py
Class Name:
Method Name: GenerateJobFileString