(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("4ce01845-097b-4dbb-824b-ce8755e79b47");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '4ce01845-097b-4dbb-824b-ce8755e79b47' 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 = {"97c3179b-1b1b-4e65-8b7d-9d4cc1e363a1":{"roots":{"references":[{"attributes":{"plot":{"id":"b60faf36-a6ea-47d2-9f45-f5c722711a3e","subtype":"Figure","type":"Plot"},"ticker":{"id":"034ab75a-9579-4355-8afd-ce0676e1399c","type":"BasicTicker"}},"id":"c8fa0a20-9101-4ce0-aeaf-b424a75e7175","type":"Grid"},{"attributes":{"callback":null},"id":"1b1d0eb5-6e23-4daa-b49f-a422490ce92d","type":"DataRange1d"},{"attributes":{},"id":"5873b40c-e344-4621-b6d5-91c4e8733a95","type":"BasicTickFormatter"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"9e38ab08-e9d8-49ff-8bfd-f181dac0d4e8","type":"PanTool"},{"id":"fce67b9e-b7bb-4580-990c-d470b24b80d0","type":"WheelZoomTool"},{"id":"c1bd5288-f68e-44ab-8c7f-fb25d392a71e","type":"BoxZoomTool"},{"id":"dca6265c-6fa3-4207-a266-6496fc52a35c","type":"SaveTool"},{"id":"f61e50bf-e895-45d5-b0ae-fbd0af02c156","type":"ResetTool"},{"id":"c831d58f-3cc4-4421-bedd-79e59d8e7265","type":"HelpTool"}]},"id":"c7dfc442-3ec9-42dc-baae-5600a9ac1fdd","type":"Toolbar"},{"attributes":{},"id":"9e38ab08-e9d8-49ff-8bfd-f181dac0d4e8","type":"PanTool"},{"attributes":{},"id":"c831d58f-3cc4-4421-bedd-79e59d8e7265","type":"HelpTool"},{"attributes":{"callback":null},"id":"2226e3b5-498f-4642-a451-97b356a97410","type":"DataRange1d"},{"attributes":{"formatter":{"id":"d2d5080d-2daa-465b-9912-311d5193de71","type":"BasicTickFormatter"},"plot":{"id":"b60faf36-a6ea-47d2-9f45-f5c722711a3e","subtype":"Figure","type":"Plot"},"ticker":{"id":"034ab75a-9579-4355-8afd-ce0676e1399c","type":"BasicTicker"}},"id":"505dd3b3-0d57-4012-94d0-d759513dcf22","type":"LinearAxis"},{"attributes":{},"id":"f61e50bf-e895-45d5-b0ae-fbd0af02c156","type":"ResetTool"},{"attributes":{"below":[{"id":"505dd3b3-0d57-4012-94d0-d759513dcf22","type":"LinearAxis"}],"left":[{"id":"5ea48033-98fc-4843-a888-8e839b87f8ae","type":"LinearAxis"}],"output_backend":"webgl","renderers":[{"id":"505dd3b3-0d57-4012-94d0-d759513dcf22","type":"LinearAxis"},{"id":"c8fa0a20-9101-4ce0-aeaf-b424a75e7175","type":"Grid"},{"id":"5ea48033-98fc-4843-a888-8e839b87f8ae","type":"LinearAxis"},{"id":"1de2b9a4-3768-4e46-a080-8727268456af","type":"Grid"},{"id":"8cda4b9a-b99d-4bfd-96dd-dd57666af22f","type":"BoxAnnotation"},{"id":"d53b10eb-e2ee-401b-8dea-2058fba7a1b0","type":"GlyphRenderer"}],"title":{"id":"eceebc0f-56e9-4f14-815d-e6c15aa2e13e","type":"Title"},"toolbar":{"id":"c7dfc442-3ec9-42dc-baae-5600a9ac1fdd","type":"Toolbar"},"x_range":{"id":"2226e3b5-498f-4642-a451-97b356a97410","type":"DataRange1d"},"x_scale":{"id":"eb9f7f18-c9c2-480c-acc4-ced8f1a2baa1","type":"LinearScale"},"y_range":{"id":"1b1d0eb5-6e23-4daa-b49f-a422490ce92d","type":"DataRange1d"},"y_scale":{"id":"e677433a-ba42-4be4-a17b-93dab01ca320","type":"LinearScale"}},"id":"b60faf36-a6ea-47d2-9f45-f5c722711a3e","subtype":"Figure","type":"Plot"},{"attributes":{"line_color":{"value":"#22aa22"},"line_width":{"value":3},"x":{"field":"x"},"y":{"field":"y"}},"id":"ec00a451-1d0e-4552-9e08-abf07c13f955","type":"Line"},{"attributes":{"data_source":{"id":"9a626fd2-4900-496d-9e68-8eba9d574284","type":"ColumnDataSource"},"glyph":{"id":"ec00a451-1d0e-4552-9e08-abf07c13f955","type":"Line"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"c293f621-c8b6-4682-970f-6dab78127fc3","type":"Line"},"selection_glyph":null,"view":{"id":"8fb09487-bb7a-400a-9310-c882cd30a299","type":"CDSView"}},"id":"d53b10eb-e2ee-401b-8dea-2058fba7a1b0","type":"GlyphRenderer"},{"attributes":{},"id":"d2d5080d-2daa-465b-9912-311d5193de71","type":"BasicTickFormatter"},{"attributes":{},"id":"e677433a-ba42-4be4-a17b-93dab01ca320","type":"LinearScale"},{"attributes":{"overlay":{"id":"8cda4b9a-b99d-4bfd-96dd-dd57666af22f","type":"BoxAnnotation"}},"id":"c1bd5288-f68e-44ab-8c7f-fb25d392a71e","type":"BoxZoomTool"},{"attributes":{},"id":"eb9f7f18-c9c2-480c-acc4-ced8f1a2baa1","type":"LinearScale"},{"attributes":{},"id":"344263fe-a1e0-4396-a95f-db268a18a456","type":"BasicTicker"},{"attributes":{},"id":"fce67b9e-b7bb-4580-990c-d470b24b80d0","type":"WheelZoomTool"},{"attributes":{"plot":null,"text":"A line consisting of 10k points"},"id":"eceebc0f-56e9-4f14-815d-e6c15aa2e13e","type":"Title"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":3},"x":{"field":"x"},"y":{"field":"y"}},"id":"c293f621-c8b6-4682-970f-6dab78127fc3","type":"Line"},{"attributes":{"dimension":1,"plot":{"id":"b60faf36-a6ea-47d2-9f45-f5c722711a3e","subtype":"Figure","type":"Plot"},"ticker":{"id":"344263fe-a1e0-4396-a95f-db268a18a456","type":"BasicTicker"}},"id":"1de2b9a4-3768-4e46-a080-8727268456af","type":"Grid"},{"attributes":{},"id":"034ab75a-9579-4355-8afd-ce0676e1399c","type":"BasicTicker"},{"attributes":{},"id":"dca6265c-6fa3-4207-a266-6496fc52a35c","type":"SaveTool"},{"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":"8cda4b9a-b99d-4bfd-96dd-dd57666af22f","type":"BoxAnnotation"},{"attributes":{"formatter":{"id":"5873b40c-e344-4621-b6d5-91c4e8733a95","type":"BasicTickFormatter"},"plot":{"id":"b60faf36-a6ea-47d2-9f45-f5c722711a3e","subtype":"Figure","type":"Plot"},"ticker":{"id":"344263fe-a1e0-4396-a95f-db268a18a456","type":"BasicTicker"}},"id":"5ea48033-98fc-4843-a888-8e839b87f8ae","type":"LinearAxis"},{"attributes":{"source":{"id":"9a626fd2-4900-496d-9e68-8eba9d574284","type":"ColumnDataSource"}},"id":"8fb09487-bb7a-400a-9310-c882cd30a299","type":"CDSView"},{"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":"9a626fd2-4900-496d-9e68-8eba9d574284","type":"ColumnDataSource"}],"root_ids":["b60faf36-a6ea-47d2-9f45-f5c722711a3e"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"97c3179b-1b1b-4e65-8b7d-9d4cc1e363a1","elementid":"4ce01845-097b-4dbb-824b-ce8755e79b47","modelid":"b60faf36-a6ea-47d2-9f45-f5c722711a3e"}];
                
                    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);
})();
