(function() {
  var fn = function() {
    
    (function(root) {
      function now() {
        return new Date();
      }
    
      var force = false;
    
      if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) {
        root._bokeh_onload_callbacks = [];
        root._bokeh_is_loading = undefined;
      }
    
      
      
    
      
      
    
      function run_callbacks() {
        try {
          root._bokeh_onload_callbacks.forEach(function(callback) { callback() });
        }
        finally {
          delete root._bokeh_onload_callbacks
        }
        console.info("Bokeh: all callbacks have finished");
      }
    
      function load_libs(js_urls, callback) {
        root._bokeh_onload_callbacks.push(callback);
        if (root._bokeh_is_loading > 0) {
          console.log("Bokeh: BokehJS is being loaded, scheduling callback at", now());
          return null;
        }
        if (js_urls == null || js_urls.length === 0) {
          run_callbacks();
          return null;
        }
        console.log("Bokeh: BokehJS not loaded, scheduling load and callback at", now());
        root._bokeh_is_loading = js_urls.length;
        for (var i = 0; i < js_urls.length; i++) {
          var url = js_urls[i];
          var s = document.createElement('script');
          s.src = url;
          s.async = false;
          s.onreadystatechange = s.onload = function() {
            root._bokeh_is_loading--;
            if (root._bokeh_is_loading === 0) {
              console.log("Bokeh: all BokehJS libraries loaded");
              run_callbacks()
            }
          };
          s.onerror = function() {
            console.warn("failed to load library " + url);
          };
          console.log("Bokeh: injecting script tag for BokehJS library: ", url);
          document.getElementsByTagName("head")[0].appendChild(s);
        }
      };var element = document.getElementById("d757a491-712f-4fc6-9325-667ce4336115");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'd757a491-712f-4fc6-9325-667ce4336115' but no matching script tag was found. ")
        return false;
      }
    
      var js_urls = ["https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-gl-0.12.9.min.js"];
    
      var inline_js = [
        function(Bokeh) {
          Bokeh.set_log_level("info");
        },
        
        function(Bokeh) {
          
        },
        
        function(Bokeh) {
          (function() {
            var fn = function() {
              Bokeh.safely(function() {
                (function(root) {
                  function embed_document(root) {
                    var docs_json = {"8b019add-b7d8-4445-89ee-96c03f4482b3":{"roots":{"references":[{"attributes":{},"id":"103eb3ee-84ae-4f5b-9932-9fcafcef0478","type":"BasicTickFormatter"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"f8c11333-5b04-49ff-8565-f4c30d8c7e53","type":"Circle"},{"attributes":{"plot":{"id":"56765015-9a0d-46ba-92d8-1132f5ec0de4","subtype":"Figure","type":"Plot"},"ticker":{"id":"4a9fdc7f-9d91-46f5-9316-13ac69bd67bb","type":"BasicTicker"}},"id":"2d81164d-c03b-40ed-a563-240ba1cac300","type":"Grid"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"84a42602-7341-4b6a-84b7-12a1fc82687f","type":"PanTool"},{"id":"d31c19d4-0651-4fbb-a361-e5d7557501f9","type":"WheelZoomTool"},{"id":"9fb72f63-f4ad-495f-b8e7-84c4f2483abd","type":"BoxZoomTool"},{"id":"5089c0da-8198-4a48-86f8-b7870e54610e","type":"SaveTool"},{"id":"d0e034ab-1557-44b7-aa0f-b267141ceb20","type":"ResetTool"},{"id":"c8938a0e-20f8-45bb-b322-9810638c720f","type":"HelpTool"}]},"id":"85e13f11-e897-49a3-8604-e2edf8774e10","type":"Toolbar"},{"attributes":{},"id":"28deb49f-8553-4693-a207-73c9d2a65550","type":"BasicTicker"},{"attributes":{},"id":"4a9fdc7f-9d91-46f5-9316-13ac69bd67bb","type":"BasicTicker"},{"attributes":{"callback":null},"id":"32a03166-1fd1-43b0-85b9-a97490ea2b98","type":"DataRange1d"},{"attributes":{"formatter":{"id":"103eb3ee-84ae-4f5b-9932-9fcafcef0478","type":"BasicTickFormatter"},"plot":{"id":"56765015-9a0d-46ba-92d8-1132f5ec0de4","subtype":"Figure","type":"Plot"},"ticker":{"id":"28deb49f-8553-4693-a207-73c9d2a65550","type":"BasicTicker"}},"id":"02ecddf8-ee19-4792-96ab-41fa4d93dd38","type":"LinearAxis"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"plot":null,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"3eb5446c-83ea-44c4-a741-3f18986b51ce","type":"BoxAnnotation"},{"attributes":{"dimension":1,"plot":{"id":"56765015-9a0d-46ba-92d8-1132f5ec0de4","subtype":"Figure","type":"Plot"},"ticker":{"id":"28deb49f-8553-4693-a207-73c9d2a65550","type":"BasicTicker"}},"id":"a071d863-ef99-4272-93b7-21ba6fd6e25a","type":"Grid"},{"attributes":{"source":{"id":"7141279b-0dda-42a4-93a4-734430f37b22","type":"ColumnDataSource"}},"id":"cf52d779-8c85-4ea4-a96b-015018c8113a","type":"CDSView"},{"attributes":{},"id":"65a35fd0-03c2-4600-90b5-ada947b72034","type":"LinearScale"},{"attributes":{},"id":"c8938a0e-20f8-45bb-b322-9810638c720f","type":"HelpTool"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 106668 characters]","dtype":"float64","shape":[10000]},"y":{"__ndarray__":"[encoded data, 106668 characters]","dtype":"float64","shape":[10000]}}},"id":"7141279b-0dda-42a4-93a4-734430f37b22","type":"ColumnDataSource"},{"attributes":{"data_source":{"id":"7141279b-0dda-42a4-93a4-734430f37b22","type":"ColumnDataSource"},"glyph":{"id":"f8c11333-5b04-49ff-8565-f4c30d8c7e53","type":"Circle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"f65dfedb-ae78-4b95-9193-191bd42101ed","type":"Circle"},"selection_glyph":null,"view":{"id":"cf52d779-8c85-4ea4-a96b-015018c8113a","type":"CDSView"}},"id":"1366acf7-31b8-4b84-9230-4e744446379f","type":"GlyphRenderer"},{"attributes":{},"id":"4cd8b168-b1ba-4fb1-ab09-be772c4081a6","type":"LinearScale"},{"attributes":{"overlay":{"id":"3eb5446c-83ea-44c4-a741-3f18986b51ce","type":"BoxAnnotation"}},"id":"9fb72f63-f4ad-495f-b8e7-84c4f2483abd","type":"BoxZoomTool"},{"attributes":{"formatter":{"id":"cf38c33f-fd05-41df-9a30-4b601f1c7ff5","type":"BasicTickFormatter"},"plot":{"id":"56765015-9a0d-46ba-92d8-1132f5ec0de4","subtype":"Figure","type":"Plot"},"ticker":{"id":"4a9fdc7f-9d91-46f5-9316-13ac69bd67bb","type":"BasicTicker"}},"id":"cc40d73e-4b57-4d01-aef1-63201f8061c4","type":"LinearAxis"},{"attributes":{},"id":"84a42602-7341-4b6a-84b7-12a1fc82687f","type":"PanTool"},{"attributes":{},"id":"d0e034ab-1557-44b7-aa0f-b267141ceb20","type":"ResetTool"},{"attributes":{"plot":null,"text":""},"id":"e998110e-6be1-400f-b1b9-a03bc25ec797","type":"Title"},{"attributes":{"callback":null},"id":"57b45f3f-ccc4-44df-8894-30cb9e26f36a","type":"DataRange1d"},{"attributes":{},"id":"5089c0da-8198-4a48-86f8-b7870e54610e","type":"SaveTool"},{"attributes":{"below":[{"id":"cc40d73e-4b57-4d01-aef1-63201f8061c4","type":"LinearAxis"}],"left":[{"id":"02ecddf8-ee19-4792-96ab-41fa4d93dd38","type":"LinearAxis"}],"output_backend":"webgl","renderers":[{"id":"cc40d73e-4b57-4d01-aef1-63201f8061c4","type":"LinearAxis"},{"id":"2d81164d-c03b-40ed-a563-240ba1cac300","type":"Grid"},{"id":"02ecddf8-ee19-4792-96ab-41fa4d93dd38","type":"LinearAxis"},{"id":"a071d863-ef99-4272-93b7-21ba6fd6e25a","type":"Grid"},{"id":"3eb5446c-83ea-44c4-a741-3f18986b51ce","type":"BoxAnnotation"},{"id":"1366acf7-31b8-4b84-9230-4e744446379f","type":"GlyphRenderer"}],"title":{"id":"e998110e-6be1-400f-b1b9-a03bc25ec797","type":"Title"},"toolbar":{"id":"85e13f11-e897-49a3-8604-e2edf8774e10","type":"Toolbar"},"x_range":{"id":"32a03166-1fd1-43b0-85b9-a97490ea2b98","type":"DataRange1d"},"x_scale":{"id":"4cd8b168-b1ba-4fb1-ab09-be772c4081a6","type":"LinearScale"},"y_range":{"id":"57b45f3f-ccc4-44df-8894-30cb9e26f36a","type":"DataRange1d"},"y_scale":{"id":"65a35fd0-03c2-4600-90b5-ada947b72034","type":"LinearScale"}},"id":"56765015-9a0d-46ba-92d8-1132f5ec0de4","subtype":"Figure","type":"Plot"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"f65dfedb-ae78-4b95-9193-191bd42101ed","type":"Circle"},{"attributes":{},"id":"d31c19d4-0651-4fbb-a361-e5d7557501f9","type":"WheelZoomTool"},{"attributes":{},"id":"cf38c33f-fd05-41df-9a30-4b601f1c7ff5","type":"BasicTickFormatter"}],"root_ids":["56765015-9a0d-46ba-92d8-1132f5ec0de4"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"8b019add-b7d8-4445-89ee-96c03f4482b3","elementid":"d757a491-712f-4fc6-9325-667ce4336115","modelid":"56765015-9a0d-46ba-92d8-1132f5ec0de4"}];
                
                    root.Bokeh.embed.embed_items(docs_json, render_items);
                  }
                
                  if (root.Bokeh !== undefined) {
                    embed_document(root);
                  } else {
                    var attempts = 0;
                    var timer = setInterval(function(root) {
                      if (root.Bokeh !== undefined) {
                        embed_document(root);
                        clearInterval(timer);
                      }
                      attempts++;
                      if (attempts > 100) {
                        console.log("Bokeh: ERROR: Unable to embed document because BokehJS library is missing")
                        clearInterval(timer);
                      }
                    }, 10, root)
                  }
                })(window);
              });
            };
            if (document.readyState != "loading") fn();
            else document.addEventListener("DOMContentLoaded", fn);
          })();
        },
        function(Bokeh) {
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
        }
      ];
    
      function run_inline_js() {
        
        for (var i = 0; i < inline_js.length; i++) {
          inline_js[i].call(root, root.Bokeh);
        }
        
      }
    
      if (root._bokeh_is_loading === 0) {
        console.log("Bokeh: BokehJS loaded, going straight to plotting");
        run_inline_js();
      } else {
        load_libs(js_urls, function() {
          console.log("Bokeh: BokehJS plotting callback run at", now());
          run_inline_js();
        });
      }
    }(window));
  };
  if (document.readyState != "loading") fn();
  else document.addEventListener("DOMContentLoaded", fn);
})();
