(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("02a5eb92-be5f-493e-bec6-fcd507eccd12");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '02a5eb92-be5f-493e-bec6-fcd507eccd12' 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 = {"eed02f1e-c3c3-4887-a10b-aa54c98ecd89":{"roots":{"references":[{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"9c82b727-5dac-4909-b61f-200755231761","type":"PanTool"},{"id":"02951b29-4b06-494a-9cb7-ae0196bc62c5","type":"WheelZoomTool"},{"id":"b5aba026-b0eb-47c3-baa3-e5ca6c6b88fd","type":"BoxZoomTool"},{"id":"10a349c3-40a4-48c0-b8b8-5c547508c0de","type":"SaveTool"},{"id":"fea7857d-5a73-4e9e-a594-d27b5e307b43","type":"ResetTool"},{"id":"d248f792-dafe-4fda-8180-f5a38938894f","type":"HelpTool"}]},"id":"8e79167f-e9e3-41c0-880f-d251eda68369","type":"Toolbar"},{"attributes":{},"id":"35cd0d2c-047d-4966-94f6-f75cf4f4e675","type":"LinearScale"},{"attributes":{"overlay":{"id":"e74fe86a-1653-4aac-8e47-143134f13d1a","type":"BoxAnnotation"}},"id":"b5aba026-b0eb-47c3-baa3-e5ca6c6b88fd","type":"BoxZoomTool"},{"attributes":{},"id":"02951b29-4b06-494a-9cb7-ae0196bc62c5","type":"WheelZoomTool"},{"attributes":{},"id":"9c82b727-5dac-4909-b61f-200755231761","type":"PanTool"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":3},"x":{"field":"x"},"y":{"field":"y"}},"id":"b36520aa-5374-494c-9a1c-6a43aa7e1c54","type":"Line"},{"attributes":{"source":{"id":"27c2426f-4af6-4a3d-b23d-2c80f03b83c5","type":"ColumnDataSource"}},"id":"c9b428b0-2418-4a3b-a6e6-1156f13538d7","type":"CDSView"},{"attributes":{"plot":null,"text":"A line consisting of 10k points"},"id":"a9b0b470-aec8-495e-94af-5fe29bff4937","type":"Title"},{"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":"27c2426f-4af6-4a3d-b23d-2c80f03b83c5","type":"ColumnDataSource"},{"attributes":{},"id":"d248f792-dafe-4fda-8180-f5a38938894f","type":"HelpTool"},{"attributes":{"callback":null},"id":"159488f7-ed67-4649-89c2-0c3ff24d06f2","type":"DataRange1d"},{"attributes":{},"id":"f5679a06-7660-4afb-91df-7f9fe3085053","type":"BasicTickFormatter"},{"attributes":{},"id":"a1c76e93-c3d9-475a-a32c-aecb1d05262c","type":"BasicTickFormatter"},{"attributes":{"formatter":{"id":"f5679a06-7660-4afb-91df-7f9fe3085053","type":"BasicTickFormatter"},"plot":{"id":"b78ea29c-af7f-4e5a-8c04-15e4f07d2db1","subtype":"Figure","type":"Plot"},"ticker":{"id":"737fb1d5-ac2c-4d9b-a18a-d52d2bd524f1","type":"BasicTicker"}},"id":"d19a6965-f135-44bd-8378-75238ff3a719","type":"LinearAxis"},{"attributes":{"formatter":{"id":"a1c76e93-c3d9-475a-a32c-aecb1d05262c","type":"BasicTickFormatter"},"plot":{"id":"b78ea29c-af7f-4e5a-8c04-15e4f07d2db1","subtype":"Figure","type":"Plot"},"ticker":{"id":"8f14dd48-8848-44ec-b574-d7d31d997ac6","type":"BasicTicker"}},"id":"ef49c8f2-5482-42ea-9af7-d52705b7d848","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":"e74fe86a-1653-4aac-8e47-143134f13d1a","type":"BoxAnnotation"},{"attributes":{},"id":"fea7857d-5a73-4e9e-a594-d27b5e307b43","type":"ResetTool"},{"attributes":{"below":[{"id":"d19a6965-f135-44bd-8378-75238ff3a719","type":"LinearAxis"}],"left":[{"id":"ef49c8f2-5482-42ea-9af7-d52705b7d848","type":"LinearAxis"}],"output_backend":"webgl","renderers":[{"id":"d19a6965-f135-44bd-8378-75238ff3a719","type":"LinearAxis"},{"id":"11a51170-cf12-49cd-b18a-89e5229b6c1e","type":"Grid"},{"id":"ef49c8f2-5482-42ea-9af7-d52705b7d848","type":"LinearAxis"},{"id":"7bb32865-43ed-4801-92c2-ff9d251897e9","type":"Grid"},{"id":"e74fe86a-1653-4aac-8e47-143134f13d1a","type":"BoxAnnotation"},{"id":"f23b4dfc-4d31-4913-ad93-e05af5c7bbd0","type":"GlyphRenderer"}],"title":{"id":"a9b0b470-aec8-495e-94af-5fe29bff4937","type":"Title"},"toolbar":{"id":"8e79167f-e9e3-41c0-880f-d251eda68369","type":"Toolbar"},"x_range":{"id":"9da75c9d-7ce6-49ce-b3cf-3b706696940b","type":"DataRange1d"},"x_scale":{"id":"55965d12-f82a-4e9f-9fc2-43973903f78b","type":"LinearScale"},"y_range":{"id":"159488f7-ed67-4649-89c2-0c3ff24d06f2","type":"DataRange1d"},"y_scale":{"id":"35cd0d2c-047d-4966-94f6-f75cf4f4e675","type":"LinearScale"}},"id":"b78ea29c-af7f-4e5a-8c04-15e4f07d2db1","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"10a349c3-40a4-48c0-b8b8-5c547508c0de","type":"SaveTool"},{"attributes":{"plot":{"id":"b78ea29c-af7f-4e5a-8c04-15e4f07d2db1","subtype":"Figure","type":"Plot"},"ticker":{"id":"737fb1d5-ac2c-4d9b-a18a-d52d2bd524f1","type":"BasicTicker"}},"id":"11a51170-cf12-49cd-b18a-89e5229b6c1e","type":"Grid"},{"attributes":{},"id":"8f14dd48-8848-44ec-b574-d7d31d997ac6","type":"BasicTicker"},{"attributes":{},"id":"55965d12-f82a-4e9f-9fc2-43973903f78b","type":"LinearScale"},{"attributes":{"line_color":{"value":"#22aa22"},"line_width":{"value":3},"x":{"field":"x"},"y":{"field":"y"}},"id":"0f1bcf73-088c-4358-85a2-52d7742cf7a3","type":"Line"},{"attributes":{"callback":null},"id":"9da75c9d-7ce6-49ce-b3cf-3b706696940b","type":"DataRange1d"},{"attributes":{"data_source":{"id":"27c2426f-4af6-4a3d-b23d-2c80f03b83c5","type":"ColumnDataSource"},"glyph":{"id":"0f1bcf73-088c-4358-85a2-52d7742cf7a3","type":"Line"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"b36520aa-5374-494c-9a1c-6a43aa7e1c54","type":"Line"},"selection_glyph":null,"view":{"id":"c9b428b0-2418-4a3b-a6e6-1156f13538d7","type":"CDSView"}},"id":"f23b4dfc-4d31-4913-ad93-e05af5c7bbd0","type":"GlyphRenderer"},{"attributes":{"dimension":1,"plot":{"id":"b78ea29c-af7f-4e5a-8c04-15e4f07d2db1","subtype":"Figure","type":"Plot"},"ticker":{"id":"8f14dd48-8848-44ec-b574-d7d31d997ac6","type":"BasicTicker"}},"id":"7bb32865-43ed-4801-92c2-ff9d251897e9","type":"Grid"},{"attributes":{},"id":"737fb1d5-ac2c-4d9b-a18a-d52d2bd524f1","type":"BasicTicker"}],"root_ids":["b78ea29c-af7f-4e5a-8c04-15e4f07d2db1"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"eed02f1e-c3c3-4887-a10b-aa54c98ecd89","elementid":"02a5eb92-be5f-493e-bec6-fcd507eccd12","modelid":"b78ea29c-af7f-4e5a-8c04-15e4f07d2db1"}];
                
                    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);
})();
