(function(root) { function now() { return new Date(); } const force = false; if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) { root._bokeh_onload_callbacks = []; root._bokeh_is_loading = undefined; } const element = document.getElementById(aaa); if (element == null) { console.warn("Bokeh: autoload.js configured with elementid 'aaa' but no matching script tag was found.") } function run_callbacks() { try { root._bokeh_onload_callbacks.forEach(function(callback) { if (callback != null) callback(); }); } finally { delete root._bokeh_onload_callbacks } console.debug("Bokeh: all callbacks have finished"); } function load_libs(css_urls, js_urls, callback) { if (css_urls == null) css_urls = []; if (js_urls == null) js_urls = []; root._bokeh_onload_callbacks.push(callback); if (root._bokeh_is_loading > 0) { console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now()); return null; } if (js_urls == null || js_urls.length === 0) { run_callbacks(); return null; } console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now()); root._bokeh_is_loading = css_urls.length + js_urls.length; function on_load() { root._bokeh_is_loading--; if (root._bokeh_is_loading === 0) { console.debug("Bokeh: all BokehJS libraries/stylesheets loaded"); run_callbacks() } } function on_error(url) { console.error("failed to load " + url); } for (let i = 0; i < css_urls.length; i++) { const url = css_urls[i]; const element = document.createElement("link"); element.onload = on_load; element.onerror = on_error.bind(null, url); element.rel = "stylesheet"; element.type = "text/css"; element.href = url; console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url); document.body.appendChild(element); } for (let i = 0; i < js_urls.length; i++) { const url = js_urls[i]; const element = document.createElement('script'); element.onload = on_load; element.onerror = on_error.bind(null, url); element.async = false; element.src = url; console.debug("Bokeh: injecting script tag for BokehJS library: ", url); document.head.appendChild(element); } }; function inject_raw_css(css) { const element = document.createElement("style"); element.appendChild(document.createTextNode(css)); document.body.appendChild(element); } const js_urls = ["http://127.0.0.1:5006/static/js/bokeh.min.js","http://127.0.0.1:5006/static/js/bokeh-gl.min.js","http://127.0.0.1:5006/static/js/bokeh-widgets.min.js","http://127.0.0.1:5006/static/js/bokeh-tables.min.js","http://127.0.0.1:5006/static/js/bokeh-mathjax.min.js"]; const css_urls = []; const inline_js = [ function(Bokeh){ (function() { const fn = function() { Bokeh.safely(function() { (function(root) { function embed_document(root) { const docs_json = {}; const render_items = [{"token":"b","elementid":"aaa","use_for_title":false}]; root.Bokeh.embed.embed_items(docs_json, render_items, "/");; } if (root.Bokeh !== undefined) { embed_document(root); } else { let attempts = 0; const timer = setInterval(function(root) { if (root.Bokeh !== undefined) { clearInterval(timer); embed_document(root); } else { attempts++; if (attempts > 100) { clearInterval(timer); console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing"); } } }, 10, root) } })(window);; });; }; if (document.readyState != "loading") fn(); else document.addEventListener("DOMContentLoaded", fn); })(); }, function(Bokeh) {} ]; function run_inline_js() { for (let i = 0; i < inline_js.length; i++) { inline_js[i].call(root, root.Bokeh); } } if (root._bokeh_is_loading === 0) { console.debug("Bokeh: BokehJS loaded, going straight to plotting"); run_inline_js(); } else { load_libs(css_urls, js_urls, function() { console.debug("Bokeh: BokehJS plotting callback run at", now()); run_inline_js(); }); } }(window));