(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("8bf10a7f-0943-45c2-8db1-ae7bbdb5e217");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '8bf10a7f-0943-45c2-8db1-ae7bbdb5e217' 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 = {"40810999-abee-4b5d-b8ec-54fc1f10cee3":{"roots":{"references":[{"attributes":{},"id":"5b132b62-e9a5-4129-a752-9b5147413f97","type":"BasicTickFormatter"},{"attributes":{"data_source":{"id":"67c596b0-aae4-4865-8a0f-e7924fe81107","type":"ColumnDataSource"},"glyph":{"id":"276fc29d-ef7f-4df9-9f23-2bf664b9da8f","type":"Circle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"25dd92a1-f7de-41a8-bf6f-abe9e148ec25","type":"Circle"},"selection_glyph":null,"view":{"id":"04c724e9-d999-443f-80fe-6f1f78ad7453","type":"CDSView"}},"id":"0e01e4f9-5d58-476f-9436-0f213814a7e9","type":"GlyphRenderer"},{"attributes":{"overlay":{"id":"2e30b8a5-4751-4a21-9067-9506fafab864","type":"BoxAnnotation"}},"id":"06705242-44a4-4f97-b69b-e86b93d37ce0","type":"BoxZoomTool"},{"attributes":{},"id":"4b3d5c7d-85ca-457b-90dc-dcaac73cb085","type":"PanTool"},{"attributes":{"callback":null},"id":"7f91af90-125e-4dbf-9af3-55958b034766","type":"DataRange1d"},{"attributes":{},"id":"e37cb518-d761-4735-a72b-b3dc3c4ae993","type":"WheelZoomTool"},{"attributes":{},"id":"82a1bd1d-2606-4073-b8ef-07230ff4ecb9","type":"ResetTool"},{"attributes":{},"id":"5c68d4ba-5d65-4182-9713-4e9b7d6319a3","type":"LinearScale"},{"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":"25dd92a1-f7de-41a8-bf6f-abe9e148ec25","type":"Circle"},{"attributes":{},"id":"c2f4b2ec-a78e-487b-8891-ce6bc8d785d2","type":"LinearScale"},{"attributes":{"callback":null},"id":"558fc023-6da8-4b9f-a80f-108f403a165b","type":"DataRange1d"},{"attributes":{"formatter":{"id":"2999f613-050b-4407-9e79-c0ee4ef0d843","type":"BasicTickFormatter"},"plot":{"id":"0ca48cc5-27b5-4a7f-b902-912c5cfa81a1","subtype":"Figure","type":"Plot"},"ticker":{"id":"95b06649-963a-467d-b71f-dd0f4c808ab7","type":"BasicTicker"}},"id":"0b388dc8-ab5d-46c1-82bb-5c4257d94648","type":"LinearAxis"},{"attributes":{"dimension":1,"plot":{"id":"0ca48cc5-27b5-4a7f-b902-912c5cfa81a1","subtype":"Figure","type":"Plot"},"ticker":{"id":"95b06649-963a-467d-b71f-dd0f4c808ab7","type":"BasicTicker"}},"id":"4a40ba04-8750-4137-a846-516db783c274","type":"Grid"},{"attributes":{},"id":"95b06649-963a-467d-b71f-dd0f4c808ab7","type":"BasicTicker"},{"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":"2e30b8a5-4751-4a21-9067-9506fafab864","type":"BoxAnnotation"},{"attributes":{"plot":{"id":"0ca48cc5-27b5-4a7f-b902-912c5cfa81a1","subtype":"Figure","type":"Plot"},"ticker":{"id":"42bc2ee4-b37e-4314-a97b-aee4fa79d9de","type":"BasicTicker"}},"id":"705678f5-1717-43fc-95fe-e093150046c0","type":"Grid"},{"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":"276fc29d-ef7f-4df9-9f23-2bf664b9da8f","type":"Circle"},{"attributes":{"plot":null,"text":""},"id":"6674f58d-5b70-4c2b-8b15-9435e5a0a0a6","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":"67c596b0-aae4-4865-8a0f-e7924fe81107","type":"ColumnDataSource"},{"attributes":{"source":{"id":"67c596b0-aae4-4865-8a0f-e7924fe81107","type":"ColumnDataSource"}},"id":"04c724e9-d999-443f-80fe-6f1f78ad7453","type":"CDSView"},{"attributes":{},"id":"265d0b76-3ec6-4174-a670-6a89b2b8c95c","type":"SaveTool"},{"attributes":{},"id":"2999f613-050b-4407-9e79-c0ee4ef0d843","type":"BasicTickFormatter"},{"attributes":{},"id":"42bc2ee4-b37e-4314-a97b-aee4fa79d9de","type":"BasicTicker"},{"attributes":{},"id":"59cabb1a-3bb8-4e2d-849c-e46546884c47","type":"HelpTool"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"4b3d5c7d-85ca-457b-90dc-dcaac73cb085","type":"PanTool"},{"id":"e37cb518-d761-4735-a72b-b3dc3c4ae993","type":"WheelZoomTool"},{"id":"06705242-44a4-4f97-b69b-e86b93d37ce0","type":"BoxZoomTool"},{"id":"265d0b76-3ec6-4174-a670-6a89b2b8c95c","type":"SaveTool"},{"id":"82a1bd1d-2606-4073-b8ef-07230ff4ecb9","type":"ResetTool"},{"id":"59cabb1a-3bb8-4e2d-849c-e46546884c47","type":"HelpTool"}]},"id":"96d571de-a5d0-4f9e-9bd4-74abd1e869fb","type":"Toolbar"},{"attributes":{"formatter":{"id":"5b132b62-e9a5-4129-a752-9b5147413f97","type":"BasicTickFormatter"},"plot":{"id":"0ca48cc5-27b5-4a7f-b902-912c5cfa81a1","subtype":"Figure","type":"Plot"},"ticker":{"id":"42bc2ee4-b37e-4314-a97b-aee4fa79d9de","type":"BasicTicker"}},"id":"b958e07a-a4b5-4943-863d-e3b7e92cf3eb","type":"LinearAxis"},{"attributes":{"below":[{"id":"b958e07a-a4b5-4943-863d-e3b7e92cf3eb","type":"LinearAxis"}],"left":[{"id":"0b388dc8-ab5d-46c1-82bb-5c4257d94648","type":"LinearAxis"}],"output_backend":"webgl","renderers":[{"id":"b958e07a-a4b5-4943-863d-e3b7e92cf3eb","type":"LinearAxis"},{"id":"705678f5-1717-43fc-95fe-e093150046c0","type":"Grid"},{"id":"0b388dc8-ab5d-46c1-82bb-5c4257d94648","type":"LinearAxis"},{"id":"4a40ba04-8750-4137-a846-516db783c274","type":"Grid"},{"id":"2e30b8a5-4751-4a21-9067-9506fafab864","type":"BoxAnnotation"},{"id":"0e01e4f9-5d58-476f-9436-0f213814a7e9","type":"GlyphRenderer"}],"title":{"id":"6674f58d-5b70-4c2b-8b15-9435e5a0a0a6","type":"Title"},"toolbar":{"id":"96d571de-a5d0-4f9e-9bd4-74abd1e869fb","type":"Toolbar"},"x_range":{"id":"7f91af90-125e-4dbf-9af3-55958b034766","type":"DataRange1d"},"x_scale":{"id":"c2f4b2ec-a78e-487b-8891-ce6bc8d785d2","type":"LinearScale"},"y_range":{"id":"558fc023-6da8-4b9f-a80f-108f403a165b","type":"DataRange1d"},"y_scale":{"id":"5c68d4ba-5d65-4182-9713-4e9b7d6319a3","type":"LinearScale"}},"id":"0ca48cc5-27b5-4a7f-b902-912c5cfa81a1","subtype":"Figure","type":"Plot"}],"root_ids":["0ca48cc5-27b5-4a7f-b902-912c5cfa81a1"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"40810999-abee-4b5d-b8ec-54fc1f10cee3","elementid":"8bf10a7f-0943-45c2-8db1-ae7bbdb5e217","modelid":"0ca48cc5-27b5-4a7f-b902-912c5cfa81a1"}];
                
                    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);
})();
