(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("f6491286-96f2-4e27-bc1a-aa7522ffe9e9");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'f6491286-96f2-4e27-bc1a-aa7522ffe9e9' 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 = {"eea85914-b926-46af-a35a-ecf15353474d":{"roots":{"references":[{"attributes":{},"id":"e4fbdf12-daea-4771-8ad0-6a9c09ce5d00","type":"PanTool"},{"attributes":{"source":{"id":"360b02b9-a468-4d3e-850d-dc7a52a6038d","type":"ColumnDataSource"}},"id":"8d6b3931-5f58-4857-b6bc-2acb30654336","type":"CDSView"},{"attributes":{"formatter":{"id":"dcc40daf-f6e0-425f-97f5-77e6cd670c3d","type":"BasicTickFormatter"},"plot":{"id":"a10455ee-d3db-4994-bc07-3eb108547dce","subtype":"Figure","type":"Plot"},"ticker":{"id":"984a0206-ad25-408f-b358-b625f337f846","type":"BasicTicker"}},"id":"b0f46da7-0df0-4e08-94de-1c1ecc8c501d","type":"LinearAxis"},{"attributes":{},"id":"2686842c-17ad-44b7-ad8b-6969f6cb6195","type":"LinearScale"},{"attributes":{},"id":"46fa883f-40ea-472a-94ed-01a9a357f6ed","type":"HelpTool"},{"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":"395017fd-c2a2-476b-bdaf-c93b117fab7c","type":"BoxAnnotation"},{"attributes":{"below":[{"id":"7f01b65c-2ed2-4ea0-95fe-8f5c4a22dc22","type":"LinearAxis"}],"left":[{"id":"b0f46da7-0df0-4e08-94de-1c1ecc8c501d","type":"LinearAxis"}],"renderers":[{"id":"7f01b65c-2ed2-4ea0-95fe-8f5c4a22dc22","type":"LinearAxis"},{"id":"a9a7484e-1b8f-4ff4-af94-f6db10fc51aa","type":"Grid"},{"id":"b0f46da7-0df0-4e08-94de-1c1ecc8c501d","type":"LinearAxis"},{"id":"05ac9ede-502a-4719-995a-c785648c1c5a","type":"Grid"},{"id":"395017fd-c2a2-476b-bdaf-c93b117fab7c","type":"BoxAnnotation"},{"id":"032e3a13-5b8f-4810-99a2-9e11f686fc3d","type":"GlyphRenderer"}],"title":{"id":"c14c8d8f-4582-4bf3-9512-800e78fa9e57","type":"Title"},"toolbar":{"id":"88c2bda1-81c8-4dd1-ab1c-5a9099e62650","type":"Toolbar"},"x_range":{"id":"803320b9-f104-433c-992d-c0b932070192","type":"DataRange1d"},"x_scale":{"id":"2ea6a201-3652-453d-a803-4995b58b244d","type":"LinearScale"},"y_range":{"id":"5c50b793-c5ff-4da2-b0b3-3c00ecf03af4","type":"DataRange1d"},"y_scale":{"id":"2686842c-17ad-44b7-ad8b-6969f6cb6195","type":"LinearScale"}},"id":"a10455ee-d3db-4994-bc07-3eb108547dce","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"e7d52d97-45ca-4a94-867c-bd54369716f5","type":"ResetTool"},{"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":"95362a2d-10bc-4a30-8159-effa56d76ab9","type":"Circle"},{"attributes":{},"id":"31d1fea7-e1fb-4104-9318-24920cb538e4","type":"WheelZoomTool"},{"attributes":{},"id":"c91250c1-17cb-4145-aee0-e576cf12c201","type":"BasicTickFormatter"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"e4fbdf12-daea-4771-8ad0-6a9c09ce5d00","type":"PanTool"},{"id":"31d1fea7-e1fb-4104-9318-24920cb538e4","type":"WheelZoomTool"},{"id":"425f7c3f-b831-4e3d-9f62-e921ae68ea49","type":"BoxZoomTool"},{"id":"c8c10469-d6ac-4505-9dc2-ee2e9bd19918","type":"SaveTool"},{"id":"e7d52d97-45ca-4a94-867c-bd54369716f5","type":"ResetTool"},{"id":"46fa883f-40ea-472a-94ed-01a9a357f6ed","type":"HelpTool"}]},"id":"88c2bda1-81c8-4dd1-ab1c-5a9099e62650","type":"Toolbar"},{"attributes":{},"id":"dc921c04-ef8f-424e-9b14-1a1e35935f82","type":"BasicTicker"},{"attributes":{},"id":"984a0206-ad25-408f-b358-b625f337f846","type":"BasicTicker"},{"attributes":{"dimension":1,"plot":{"id":"a10455ee-d3db-4994-bc07-3eb108547dce","subtype":"Figure","type":"Plot"},"ticker":{"id":"984a0206-ad25-408f-b358-b625f337f846","type":"BasicTicker"}},"id":"05ac9ede-502a-4719-995a-c785648c1c5a","type":"Grid"},{"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":"360b02b9-a468-4d3e-850d-dc7a52a6038d","type":"ColumnDataSource"},{"attributes":{},"id":"c8c10469-d6ac-4505-9dc2-ee2e9bd19918","type":"SaveTool"},{"attributes":{"plot":{"id":"a10455ee-d3db-4994-bc07-3eb108547dce","subtype":"Figure","type":"Plot"},"ticker":{"id":"dc921c04-ef8f-424e-9b14-1a1e35935f82","type":"BasicTicker"}},"id":"a9a7484e-1b8f-4ff4-af94-f6db10fc51aa","type":"Grid"},{"attributes":{"callback":null},"id":"5c50b793-c5ff-4da2-b0b3-3c00ecf03af4","type":"DataRange1d"},{"attributes":{"callback":null},"id":"803320b9-f104-433c-992d-c0b932070192","type":"DataRange1d"},{"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":"0350b701-fd5a-4d05-94a7-6c9334eb3649","type":"Circle"},{"attributes":{"formatter":{"id":"c91250c1-17cb-4145-aee0-e576cf12c201","type":"BasicTickFormatter"},"plot":{"id":"a10455ee-d3db-4994-bc07-3eb108547dce","subtype":"Figure","type":"Plot"},"ticker":{"id":"dc921c04-ef8f-424e-9b14-1a1e35935f82","type":"BasicTicker"}},"id":"7f01b65c-2ed2-4ea0-95fe-8f5c4a22dc22","type":"LinearAxis"},{"attributes":{},"id":"2ea6a201-3652-453d-a803-4995b58b244d","type":"LinearScale"},{"attributes":{"data_source":{"id":"360b02b9-a468-4d3e-850d-dc7a52a6038d","type":"ColumnDataSource"},"glyph":{"id":"0350b701-fd5a-4d05-94a7-6c9334eb3649","type":"Circle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"95362a2d-10bc-4a30-8159-effa56d76ab9","type":"Circle"},"selection_glyph":null,"view":{"id":"8d6b3931-5f58-4857-b6bc-2acb30654336","type":"CDSView"}},"id":"032e3a13-5b8f-4810-99a2-9e11f686fc3d","type":"GlyphRenderer"},{"attributes":{},"id":"dcc40daf-f6e0-425f-97f5-77e6cd670c3d","type":"BasicTickFormatter"},{"attributes":{"overlay":{"id":"395017fd-c2a2-476b-bdaf-c93b117fab7c","type":"BoxAnnotation"}},"id":"425f7c3f-b831-4e3d-9f62-e921ae68ea49","type":"BoxZoomTool"},{"attributes":{"plot":null,"text":""},"id":"c14c8d8f-4582-4bf3-9512-800e78fa9e57","type":"Title"}],"root_ids":["a10455ee-d3db-4994-bc07-3eb108547dce"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"eea85914-b926-46af-a35a-ecf15353474d","elementid":"f6491286-96f2-4e27-bc1a-aa7522ffe9e9","modelid":"a10455ee-d3db-4994-bc07-3eb108547dce"}];
                
                    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);
})();
