(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("7cca3cc2-7a90-4d1e-a70e-d45bbac37ae4");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '7cca3cc2-7a90-4d1e-a70e-d45bbac37ae4' 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 = {"16d16927-9046-4b86-af1d-9efbf14765d9":{"roots":{"references":[{"attributes":{"formatter":{"id":"12b639d6-64a7-46da-9bc6-c9b9b8a53f7a","type":"BasicTickFormatter"},"plot":{"id":"01529655-9949-4fcf-8f1b-7b0812ea67fd","subtype":"Figure","type":"Plot"},"ticker":{"id":"90bc6ca8-8816-4727-a42e-2863a3f36a04","type":"BasicTicker"}},"id":"725d5586-1ca0-4e51-a27b-b392577bb22e","type":"LinearAxis"},{"attributes":{"line_color":{"value":"#22aa22"},"line_width":{"value":3},"x":{"field":"x"},"y":{"field":"y"}},"id":"b13ab51a-7857-4aaa-bf7c-d8ee3638d936","type":"Line"},{"attributes":{"dimension":1,"plot":{"id":"01529655-9949-4fcf-8f1b-7b0812ea67fd","subtype":"Figure","type":"Plot"},"ticker":{"id":"90bc6ca8-8816-4727-a42e-2863a3f36a04","type":"BasicTicker"}},"id":"cb21588f-5c06-491d-858f-85955c0a79b0","type":"Grid"},{"attributes":{"plot":{"id":"01529655-9949-4fcf-8f1b-7b0812ea67fd","subtype":"Figure","type":"Plot"},"ticker":{"id":"c6119b30-5be9-4a29-8a2f-d84537b41b21","type":"BasicTicker"}},"id":"365f81d4-ad47-41fd-bbd9-323368471b68","type":"Grid"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"19b08caf-9644-4b4b-9938-f61d3f48d68b","type":"PanTool"},{"id":"409456e2-58b4-4398-ad75-0b546b2f69be","type":"WheelZoomTool"},{"id":"d96f8bd9-9f93-4f18-97f4-81ce008c4000","type":"BoxZoomTool"},{"id":"16177b80-1273-4517-8930-ff7ba9e54848","type":"SaveTool"},{"id":"8e714a35-ea96-4ac1-bc64-8c10b4eb2f5c","type":"ResetTool"},{"id":"cfa6e036-44e0-4b9f-a63e-6dc58126b60a","type":"HelpTool"}]},"id":"c14cc2ca-02e8-49a4-a984-3b4b8c657e09","type":"Toolbar"},{"attributes":{},"id":"0cad1e05-6565-4eee-864e-2ce5c6e6cff2","type":"LinearScale"},{"attributes":{"plot":null,"text":"A line consisting of 10k points"},"id":"50a56bba-8935-45f6-93da-49d9506e8f30","type":"Title"},{"attributes":{},"id":"90bc6ca8-8816-4727-a42e-2863a3f36a04","type":"BasicTicker"},{"attributes":{},"id":"0ea6fb78-d24a-4f05-9955-df4ebaf2a339","type":"BasicTickFormatter"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":3},"x":{"field":"x"},"y":{"field":"y"}},"id":"449edbd6-7bb9-434d-8ed5-457b87c95c26","type":"Line"},{"attributes":{"source":{"id":"f7384aac-7916-4fb5-b22c-9c8dea9bee58","type":"ColumnDataSource"}},"id":"417b577f-f495-401b-b8c9-fd736e4a1301","type":"CDSView"},{"attributes":{"formatter":{"id":"0ea6fb78-d24a-4f05-9955-df4ebaf2a339","type":"BasicTickFormatter"},"plot":{"id":"01529655-9949-4fcf-8f1b-7b0812ea67fd","subtype":"Figure","type":"Plot"},"ticker":{"id":"c6119b30-5be9-4a29-8a2f-d84537b41b21","type":"BasicTicker"}},"id":"2cad1bfd-fe68-431f-b5fa-9689591e7b8f","type":"LinearAxis"},{"attributes":{},"id":"16177b80-1273-4517-8930-ff7ba9e54848","type":"SaveTool"},{"attributes":{},"id":"c6119b30-5be9-4a29-8a2f-d84537b41b21","type":"BasicTicker"},{"attributes":{},"id":"409456e2-58b4-4398-ad75-0b546b2f69be","type":"WheelZoomTool"},{"attributes":{},"id":"cfa6e036-44e0-4b9f-a63e-6dc58126b60a","type":"HelpTool"},{"attributes":{},"id":"8e714a35-ea96-4ac1-bc64-8c10b4eb2f5c","type":"ResetTool"},{"attributes":{"data_source":{"id":"f7384aac-7916-4fb5-b22c-9c8dea9bee58","type":"ColumnDataSource"},"glyph":{"id":"b13ab51a-7857-4aaa-bf7c-d8ee3638d936","type":"Line"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"449edbd6-7bb9-434d-8ed5-457b87c95c26","type":"Line"},"selection_glyph":null,"view":{"id":"417b577f-f495-401b-b8c9-fd736e4a1301","type":"CDSView"}},"id":"b1a47ed3-5f94-4d17-afc5-6d088e8ed4c8","type":"GlyphRenderer"},{"attributes":{"callback":null},"id":"bdcaf054-ee7a-458a-be2f-7e86adfba240","type":"DataRange1d"},{"attributes":{},"id":"12b639d6-64a7-46da-9bc6-c9b9b8a53f7a","type":"BasicTickFormatter"},{"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":"510118a6-d8e7-4c44-960b-866441e882d0","type":"BoxAnnotation"},{"attributes":{"callback":null},"id":"c423499a-2411-4a1b-b997-465a1ba70083","type":"DataRange1d"},{"attributes":{"overlay":{"id":"510118a6-d8e7-4c44-960b-866441e882d0","type":"BoxAnnotation"}},"id":"d96f8bd9-9f93-4f18-97f4-81ce008c4000","type":"BoxZoomTool"},{"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":"f7384aac-7916-4fb5-b22c-9c8dea9bee58","type":"ColumnDataSource"},{"attributes":{},"id":"df5d679b-b942-4852-87fa-dd51f904b048","type":"LinearScale"},{"attributes":{},"id":"19b08caf-9644-4b4b-9938-f61d3f48d68b","type":"PanTool"},{"attributes":{"below":[{"id":"2cad1bfd-fe68-431f-b5fa-9689591e7b8f","type":"LinearAxis"}],"left":[{"id":"725d5586-1ca0-4e51-a27b-b392577bb22e","type":"LinearAxis"}],"output_backend":"webgl","renderers":[{"id":"2cad1bfd-fe68-431f-b5fa-9689591e7b8f","type":"LinearAxis"},{"id":"365f81d4-ad47-41fd-bbd9-323368471b68","type":"Grid"},{"id":"725d5586-1ca0-4e51-a27b-b392577bb22e","type":"LinearAxis"},{"id":"cb21588f-5c06-491d-858f-85955c0a79b0","type":"Grid"},{"id":"510118a6-d8e7-4c44-960b-866441e882d0","type":"BoxAnnotation"},{"id":"b1a47ed3-5f94-4d17-afc5-6d088e8ed4c8","type":"GlyphRenderer"}],"title":{"id":"50a56bba-8935-45f6-93da-49d9506e8f30","type":"Title"},"toolbar":{"id":"c14cc2ca-02e8-49a4-a984-3b4b8c657e09","type":"Toolbar"},"x_range":{"id":"bdcaf054-ee7a-458a-be2f-7e86adfba240","type":"DataRange1d"},"x_scale":{"id":"df5d679b-b942-4852-87fa-dd51f904b048","type":"LinearScale"},"y_range":{"id":"c423499a-2411-4a1b-b997-465a1ba70083","type":"DataRange1d"},"y_scale":{"id":"0cad1e05-6565-4eee-864e-2ce5c6e6cff2","type":"LinearScale"}},"id":"01529655-9949-4fcf-8f1b-7b0812ea67fd","subtype":"Figure","type":"Plot"}],"root_ids":["01529655-9949-4fcf-8f1b-7b0812ea67fd"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"16d16927-9046-4b86-af1d-9efbf14765d9","elementid":"7cca3cc2-7a90-4d1e-a70e-d45bbac37ae4","modelid":"01529655-9949-4fcf-8f1b-7b0812ea67fd"}];
                
                    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);
})();
