(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("939fc06b-4b14-48b6-ae10-4c99057e7226");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '939fc06b-4b14-48b6-ae10-4c99057e7226' 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 = {"6018fe37-40e0-4bea-80ed-9287975ea612":{"roots":{"references":[{"attributes":{"callback":null},"id":"70e6de79-dc38-4170-b75a-45401341e880","type":"DataRange1d"},{"attributes":{},"id":"3b77d9ca-d1f1-4b2e-897a-ce69908202c1","type":"SaveTool"},{"attributes":{"overlay":{"id":"c7c44d08-db8a-4fd9-889f-692b9d520d70","type":"BoxAnnotation"}},"id":"67b7ac94-6240-468c-9598-76fe52d04b5a","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":"150f5512-b4eb-4ad3-a67e-33471a215b74","type":"ColumnDataSource"},{"attributes":{"below":[{"id":"125e69e7-0451-4c74-b89d-244daccfd492","type":"LinearAxis"}],"left":[{"id":"7cc78bb2-efa0-49ae-ac5e-d0f8ba3ce453","type":"LinearAxis"}],"output_backend":"webgl","renderers":[{"id":"125e69e7-0451-4c74-b89d-244daccfd492","type":"LinearAxis"},{"id":"30595635-e21c-4610-a8c7-ae8f0ea939ce","type":"Grid"},{"id":"7cc78bb2-efa0-49ae-ac5e-d0f8ba3ce453","type":"LinearAxis"},{"id":"064956fb-8610-4473-a0f4-bd04bed2dbdd","type":"Grid"},{"id":"c7c44d08-db8a-4fd9-889f-692b9d520d70","type":"BoxAnnotation"},{"id":"09fdd6e0-3e2c-41ee-91cf-a20c328050e1","type":"GlyphRenderer"}],"title":{"id":"6d7e5b59-bcfd-45ed-b0a8-1b39e40540c5","type":"Title"},"toolbar":{"id":"fd34db73-1e0f-4325-b8dd-7389ab4c422e","type":"Toolbar"},"x_range":{"id":"5bab596d-7dd6-4683-a594-dc3519c4510f","type":"DataRange1d"},"x_scale":{"id":"f302f00a-8a84-4b81-a02f-852153f42e14","type":"LinearScale"},"y_range":{"id":"70e6de79-dc38-4170-b75a-45401341e880","type":"DataRange1d"},"y_scale":{"id":"222a702e-a291-4317-9ccc-50178a51551a","type":"LinearScale"}},"id":"ccfb4933-bcab-4d13-9ee1-1375afbb4499","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"cfbe2294-c3e7-48a1-a72c-94509a0b93f7","type":"BasicTicker"},{"attributes":{"source":{"id":"150f5512-b4eb-4ad3-a67e-33471a215b74","type":"ColumnDataSource"}},"id":"e4f61211-96d0-4194-adb7-5397d8081ade","type":"CDSView"},{"attributes":{"data_source":{"id":"150f5512-b4eb-4ad3-a67e-33471a215b74","type":"ColumnDataSource"},"glyph":{"id":"dec05db6-ad59-4dbc-9bb7-dd71e7bc5e55","type":"Circle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"9631493c-3399-4368-b146-6f99719a7302","type":"Circle"},"selection_glyph":null,"view":{"id":"e4f61211-96d0-4194-adb7-5397d8081ade","type":"CDSView"}},"id":"09fdd6e0-3e2c-41ee-91cf-a20c328050e1","type":"GlyphRenderer"},{"attributes":{},"id":"e3154d13-05c6-4e65-94da-1f75033d5d56","type":"BasicTicker"},{"attributes":{},"id":"2379546b-d4f6-4faf-a9c0-7e1d36d46a33","type":"BasicTickFormatter"},{"attributes":{"callback":null},"id":"5bab596d-7dd6-4683-a594-dc3519c4510f","type":"DataRange1d"},{"attributes":{},"id":"99f585f5-1e11-4225-8211-b5d64147f09c","type":"ResetTool"},{"attributes":{"formatter":{"id":"2379546b-d4f6-4faf-a9c0-7e1d36d46a33","type":"BasicTickFormatter"},"plot":{"id":"ccfb4933-bcab-4d13-9ee1-1375afbb4499","subtype":"Figure","type":"Plot"},"ticker":{"id":"cfbe2294-c3e7-48a1-a72c-94509a0b93f7","type":"BasicTicker"}},"id":"125e69e7-0451-4c74-b89d-244daccfd492","type":"LinearAxis"},{"attributes":{},"id":"f302f00a-8a84-4b81-a02f-852153f42e14","type":"LinearScale"},{"attributes":{"formatter":{"id":"fe5699f3-9e36-481d-9732-8668845b10e1","type":"BasicTickFormatter"},"plot":{"id":"ccfb4933-bcab-4d13-9ee1-1375afbb4499","subtype":"Figure","type":"Plot"},"ticker":{"id":"e3154d13-05c6-4e65-94da-1f75033d5d56","type":"BasicTicker"}},"id":"7cc78bb2-efa0-49ae-ac5e-d0f8ba3ce453","type":"LinearAxis"},{"attributes":{},"id":"c00a562f-995e-4e2d-88d8-31d9b6782acc","type":"WheelZoomTool"},{"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":"9631493c-3399-4368-b146-6f99719a7302","type":"Circle"},{"attributes":{},"id":"fe5699f3-9e36-481d-9732-8668845b10e1","type":"BasicTickFormatter"},{"attributes":{},"id":"e2274824-bb11-48d6-85fe-6ac83c773297","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":"c7c44d08-db8a-4fd9-889f-692b9d520d70","type":"BoxAnnotation"},{"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":"dec05db6-ad59-4dbc-9bb7-dd71e7bc5e55","type":"Circle"},{"attributes":{"plot":{"id":"ccfb4933-bcab-4d13-9ee1-1375afbb4499","subtype":"Figure","type":"Plot"},"ticker":{"id":"cfbe2294-c3e7-48a1-a72c-94509a0b93f7","type":"BasicTicker"}},"id":"30595635-e21c-4610-a8c7-ae8f0ea939ce","type":"Grid"},{"attributes":{"plot":null,"text":""},"id":"6d7e5b59-bcfd-45ed-b0a8-1b39e40540c5","type":"Title"},{"attributes":{"dimension":1,"plot":{"id":"ccfb4933-bcab-4d13-9ee1-1375afbb4499","subtype":"Figure","type":"Plot"},"ticker":{"id":"e3154d13-05c6-4e65-94da-1f75033d5d56","type":"BasicTicker"}},"id":"064956fb-8610-4473-a0f4-bd04bed2dbdd","type":"Grid"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"95ec7aed-8527-421f-a947-98e27a53ab3e","type":"PanTool"},{"id":"c00a562f-995e-4e2d-88d8-31d9b6782acc","type":"WheelZoomTool"},{"id":"67b7ac94-6240-468c-9598-76fe52d04b5a","type":"BoxZoomTool"},{"id":"3b77d9ca-d1f1-4b2e-897a-ce69908202c1","type":"SaveTool"},{"id":"99f585f5-1e11-4225-8211-b5d64147f09c","type":"ResetTool"},{"id":"e2274824-bb11-48d6-85fe-6ac83c773297","type":"HelpTool"}]},"id":"fd34db73-1e0f-4325-b8dd-7389ab4c422e","type":"Toolbar"},{"attributes":{},"id":"95ec7aed-8527-421f-a947-98e27a53ab3e","type":"PanTool"},{"attributes":{},"id":"222a702e-a291-4317-9ccc-50178a51551a","type":"LinearScale"}],"root_ids":["ccfb4933-bcab-4d13-9ee1-1375afbb4499"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"6018fe37-40e0-4bea-80ed-9287975ea612","elementid":"939fc06b-4b14-48b6-ae10-4c99057e7226","modelid":"ccfb4933-bcab-4d13-9ee1-1375afbb4499"}];
                
                    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);
})();
