(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("98b1ebbe-9f17-47fa-8758-8405d05bf3e9");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '98b1ebbe-9f17-47fa-8758-8405d05bf3e9' 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 = {"85543c13-3717-4cec-a2cb-7f18000603e0":{"roots":{"references":[{"attributes":{"formatter":{"id":"ed6d5253-1ccf-4979-b9bf-1c23d263d2d4","type":"BasicTickFormatter"},"plot":{"id":"30dad2da-7100-4c55-be74-725c37876975","subtype":"Figure","type":"Plot"},"ticker":{"id":"4eaf2f74-da91-45c0-8752-f5b42cb0950d","type":"BasicTicker"}},"id":"598c4341-679b-4be4-b9cb-b0c8383b2873","type":"LinearAxis"},{"attributes":{"plot":{"id":"30dad2da-7100-4c55-be74-725c37876975","subtype":"Figure","type":"Plot"},"ticker":{"id":"e8f86f5c-27b4-4b32-95f7-d0a8f2299358","type":"BasicTicker"}},"id":"1c2ad744-2d48-4d09-a860-545524fbdf87","type":"Grid"},{"attributes":{"color_mapper":{"id":"ade6afcc-ef3a-4971-8143-f19ed19d80d3","type":"LinearColorMapper"},"dh":{"units":"data","value":10},"dw":{"units":"data","value":10},"image":{"field":"image"},"x":{"value":0},"y":{"value":0}},"id":"21a6e5cc-f445-4fa3-96c8-fb683c782621","type":"Image"},{"attributes":{},"id":"ed6d5253-1ccf-4979-b9bf-1c23d263d2d4","type":"BasicTickFormatter"},{"attributes":{},"id":"f9a9669f-8f31-4387-93cb-a9f22111a0f1","type":"LinearScale"},{"attributes":{},"id":"31919003-15a3-4eb9-9c16-2ca1ca69c5dc","type":"BasicTickFormatter"},{"attributes":{"callback":null,"end":10},"id":"263bc4ab-c96e-4f9d-9bb0-0f9ac5147c39","type":"Range1d"},{"attributes":{"palette":["#5e4fa2","#3288bd","#66c2a5","#abdda4","#e6f598","#ffffbf","#fee08b","#fdae61","#f46d43","#d53e4f","#9e0142"]},"id":"237259f3-2c18-41c1-839e-58970085c767","type":"LinearColorMapper"},{"attributes":{"plot":null,"text":""},"id":"79c2e0ce-9153-4dd8-9cf5-81c832302a0d","type":"Title"},{"attributes":{"data_source":{"id":"184bcbfc-8174-4ad5-9f26-941be46147f0","type":"ColumnDataSource"},"glyph":{"id":"359b445f-001f-4f61-84ac-7ac573750035","type":"Image"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"21a6e5cc-f445-4fa3-96c8-fb683c782621","type":"Image"},"selection_glyph":null,"view":{"id":"9a1b36b2-dce8-4179-9f8b-d1d9da626ac8","type":"CDSView"}},"id":"28c6b0ab-7d1c-4fce-a29b-2fc6299a6718","type":"GlyphRenderer"},{"attributes":{},"id":"d2a10f09-2369-4483-8e2d-3b053aebcffd","type":"SaveTool"},{"attributes":{"color_mapper":{"id":"237259f3-2c18-41c1-839e-58970085c767","type":"LinearColorMapper"},"dh":{"units":"data","value":10},"dw":{"units":"data","value":10},"image":{"field":"image"},"x":{"value":0},"y":{"value":0}},"id":"359b445f-001f-4f61-84ac-7ac573750035","type":"Image"},{"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":"1d4d6533-4df1-4e52-914b-5844227283f0","type":"BoxAnnotation"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"5406dabd-e72e-4908-91c5-eee26f01af37","type":"PanTool"},{"id":"2b5419ef-dcf9-436b-bc37-0da4063bcbca","type":"WheelZoomTool"},{"id":"a8b33dbb-a4cd-44a2-b431-33f920e86bbb","type":"BoxZoomTool"},{"id":"d2a10f09-2369-4483-8e2d-3b053aebcffd","type":"SaveTool"},{"id":"ae8450e1-4610-44ea-ba27-ed4c50fee680","type":"ResetTool"},{"id":"f89b1d35-d1fa-4880-ba70-13056b2deb14","type":"HelpTool"}]},"id":"19a46c66-746d-4fa5-844e-4ecc3fcac9dd","type":"Toolbar"},{"attributes":{},"id":"e8f86f5c-27b4-4b32-95f7-d0a8f2299358","type":"BasicTicker"},{"attributes":{"dimension":1,"plot":{"id":"30dad2da-7100-4c55-be74-725c37876975","subtype":"Figure","type":"Plot"},"ticker":{"id":"4eaf2f74-da91-45c0-8752-f5b42cb0950d","type":"BasicTicker"}},"id":"fe22023a-557f-4fcb-993d-373ed91ce9f4","type":"Grid"},{"attributes":{"callback":null,"end":10},"id":"4ce05a6e-78e5-49c2-9002-fc4c67188aff","type":"Range1d"},{"attributes":{"source":{"id":"184bcbfc-8174-4ad5-9f26-941be46147f0","type":"ColumnDataSource"}},"id":"9a1b36b2-dce8-4179-9f8b-d1d9da626ac8","type":"CDSView"},{"attributes":{},"id":"4eaf2f74-da91-45c0-8752-f5b42cb0950d","type":"BasicTicker"},{"attributes":{"below":[{"id":"2752a452-6d0a-4ca2-892b-a218c3193e29","type":"LinearAxis"}],"left":[{"id":"598c4341-679b-4be4-b9cb-b0c8383b2873","type":"LinearAxis"}],"renderers":[{"id":"2752a452-6d0a-4ca2-892b-a218c3193e29","type":"LinearAxis"},{"id":"1c2ad744-2d48-4d09-a860-545524fbdf87","type":"Grid"},{"id":"598c4341-679b-4be4-b9cb-b0c8383b2873","type":"LinearAxis"},{"id":"fe22023a-557f-4fcb-993d-373ed91ce9f4","type":"Grid"},{"id":"1d4d6533-4df1-4e52-914b-5844227283f0","type":"BoxAnnotation"},{"id":"28c6b0ab-7d1c-4fce-a29b-2fc6299a6718","type":"GlyphRenderer"}],"title":{"id":"79c2e0ce-9153-4dd8-9cf5-81c832302a0d","type":"Title"},"toolbar":{"id":"19a46c66-746d-4fa5-844e-4ecc3fcac9dd","type":"Toolbar"},"x_range":{"id":"4ce05a6e-78e5-49c2-9002-fc4c67188aff","type":"Range1d"},"x_scale":{"id":"f9a9669f-8f31-4387-93cb-a9f22111a0f1","type":"LinearScale"},"y_range":{"id":"263bc4ab-c96e-4f9d-9bb0-0f9ac5147c39","type":"Range1d"},"y_scale":{"id":"e2903772-c5be-4e69-813b-9f39b3f65607","type":"LinearScale"}},"id":"30dad2da-7100-4c55-be74-725c37876975","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"5406dabd-e72e-4908-91c5-eee26f01af37","type":"PanTool"},{"attributes":{},"id":"ae8450e1-4610-44ea-ba27-ed4c50fee680","type":"ResetTool"},{"attributes":{"palette":["#5e4fa2","#3288bd","#66c2a5","#abdda4","#e6f598","#ffffbf","#fee08b","#fdae61","#f46d43","#d53e4f","#9e0142"]},"id":"ade6afcc-ef3a-4971-8143-f19ed19d80d3","type":"LinearColorMapper"},{"attributes":{"callback":null,"column_names":["image"],"data":{"image":[{"__ndarray__":"[encoded data, 2666668 characters]","dtype":"float64","shape":[500,500]}]}},"id":"184bcbfc-8174-4ad5-9f26-941be46147f0","type":"ColumnDataSource"},{"attributes":{"overlay":{"id":"1d4d6533-4df1-4e52-914b-5844227283f0","type":"BoxAnnotation"}},"id":"a8b33dbb-a4cd-44a2-b431-33f920e86bbb","type":"BoxZoomTool"},{"attributes":{},"id":"e2903772-c5be-4e69-813b-9f39b3f65607","type":"LinearScale"},{"attributes":{},"id":"f89b1d35-d1fa-4880-ba70-13056b2deb14","type":"HelpTool"},{"attributes":{"formatter":{"id":"31919003-15a3-4eb9-9c16-2ca1ca69c5dc","type":"BasicTickFormatter"},"plot":{"id":"30dad2da-7100-4c55-be74-725c37876975","subtype":"Figure","type":"Plot"},"ticker":{"id":"e8f86f5c-27b4-4b32-95f7-d0a8f2299358","type":"BasicTicker"}},"id":"2752a452-6d0a-4ca2-892b-a218c3193e29","type":"LinearAxis"},{"attributes":{},"id":"2b5419ef-dcf9-436b-bc37-0da4063bcbca","type":"WheelZoomTool"}],"root_ids":["30dad2da-7100-4c55-be74-725c37876975"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"85543c13-3717-4cec-a2cb-7f18000603e0","elementid":"98b1ebbe-9f17-47fa-8758-8405d05bf3e9","modelid":"30dad2da-7100-4c55-be74-725c37876975"}];
                
                    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);
})();
