(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("20a9c756-3769-4ba7-8b8f-bbf312b7fd3f");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '20a9c756-3769-4ba7-8b8f-bbf312b7fd3f' 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 = {"002b3496-51bf-41cd-997a-7ab73bdd1363":{"roots":{"references":[{"attributes":{"dh":{"field":"dh","units":"data"},"dw":{"field":"dw","units":"data"},"image":{"field":"image"},"x":{"field":"x"},"y":{"field":"y"}},"id":"552dae6d-f509-4335-b877-9c7b436df0cc","type":"ImageRGBA"},{"attributes":{},"id":"1f40707a-15db-442c-9498-c7fb99a2126f","type":"WheelZoomTool"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"e4630a06-6cbd-40a7-b8c8-33de61c55143","type":"PanTool"},{"id":"1f40707a-15db-442c-9498-c7fb99a2126f","type":"WheelZoomTool"},{"id":"6963b35c-86d4-485f-b14f-6d49d0a186f3","type":"BoxZoomTool"},{"id":"403f29c4-69c7-42b1-9268-e88527149dd4","type":"SaveTool"},{"id":"16a958c1-cf81-433a-a0b7-51fb26fe6423","type":"ResetTool"},{"id":"882fbf0b-d34a-4db8-927c-4fde5d67e845","type":"HelpTool"}]},"id":"b3168878-45cd-42a4-816b-a50b6cc9584f","type":"Toolbar"},{"attributes":{},"id":"16a958c1-cf81-433a-a0b7-51fb26fe6423","type":"ResetTool"},{"attributes":{"plot":null,"text":""},"id":"d3adcdf0-83f8-4900-a5b7-bae1adaf56a6","type":"Title"},{"attributes":{"formatter":{"id":"7b3f6f6d-9c16-4958-907f-e1e818e3daa1","type":"BasicTickFormatter"},"plot":{"id":"8f8bb0da-a775-488e-8ff1-79fa4788409e","subtype":"Figure","type":"Plot"},"ticker":{"id":"446b9508-ec38-45d3-a60f-442dad3de64b","type":"BasicTicker"}},"id":"2c4280af-a0ff-455d-9637-b249f73539bf","type":"LinearAxis"},{"attributes":{},"id":"403f29c4-69c7-42b1-9268-e88527149dd4","type":"SaveTool"},{"attributes":{"callback":null,"end":10},"id":"1986cdde-b03b-44af-be56-fc6824e2b475","type":"Range1d"},{"attributes":{"callback":null,"end":10},"id":"4d7f5c25-a627-41eb-879b-ba20d3f8cf2c","type":"Range1d"},{"attributes":{},"id":"0da42cc8-f869-41a4-928d-4636a260c349","type":"LinearScale"},{"attributes":{},"id":"446b9508-ec38-45d3-a60f-442dad3de64b","type":"BasicTicker"},{"attributes":{"dh":{"field":"dh","units":"data"},"dw":{"field":"dw","units":"data"},"image":{"field":"image"},"x":{"field":"x"},"y":{"field":"y"}},"id":"62b05ba5-3067-40db-82ce-d9789a21fd53","type":"ImageRGBA"},{"attributes":{},"id":"882fbf0b-d34a-4db8-927c-4fde5d67e845","type":"HelpTool"},{"attributes":{"overlay":{"id":"7c2e57bc-709d-4b66-ad73-838583e69349","type":"BoxAnnotation"}},"id":"6963b35c-86d4-485f-b14f-6d49d0a186f3","type":"BoxZoomTool"},{"attributes":{"source":{"id":"37958a8d-8d0a-4772-8ccf-96ca0eef2bc7","type":"ColumnDataSource"}},"id":"67b63006-91bb-4a8e-b658-6113a7a7c37a","type":"CDSView"},{"attributes":{"plot":{"id":"8f8bb0da-a775-488e-8ff1-79fa4788409e","subtype":"Figure","type":"Plot"},"ticker":{"id":"446b9508-ec38-45d3-a60f-442dad3de64b","type":"BasicTicker"}},"id":"40e9fa5d-d71c-4590-83e8-25c0c2a74138","type":"Grid"},{"attributes":{},"id":"f4b97952-ecf3-47e8-bfe1-704f6286bbc4","type":"BasicTicker"},{"attributes":{"dimension":1,"plot":{"id":"8f8bb0da-a775-488e-8ff1-79fa4788409e","subtype":"Figure","type":"Plot"},"ticker":{"id":"f4b97952-ecf3-47e8-bfe1-704f6286bbc4","type":"BasicTicker"}},"id":"9a969b97-d024-4a1e-b115-b3bf1edc86cf","type":"Grid"},{"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":"7c2e57bc-709d-4b66-ad73-838583e69349","type":"BoxAnnotation"},{"attributes":{},"id":"cc95079d-11ab-4979-ae03-940e7332dba2","type":"LinearScale"},{"attributes":{"callback":null,"column_names":["dh","image","x","y","dw"],"data":{"dh":[10],"dw":[10],"image":[{"__ndarray__":"AJ4A/wCeDP8Anhn/AJ4m/wCeM/8Anj//AJ5M/wCeWf8Anmb/AJ5y/wCef/8Anoz/AJ6Z/wCepf8AnrL/AJ6//wCezP8Antj/AJ7l/wCe8v8MngD/DJ4M/wyeGf8Mnib/DJ4z/wyeP/8Mnkz/DJ5Z/wyeZv8MnnL/DJ5//wyejP8Mnpn/DJ6l/wyesv8Mnr//DJ7M/wye2P8MnuX/DJ7y/xmeAP8Zngz/GZ4Z/xmeJv8ZnjP/GZ4//xmeTP8Znln/GZ5m/xmecv8Znn//GZ6M/xmemf8ZnqX/GZ6y/xmev/8Znsz/GZ7Y/xme5f8ZnvL/Jp4A/yaeDP8mnhn/Jp4m/yaeM/8mnj//Jp5M/yaeWf8mnmb/Jp5y/yaef/8mnoz/Jp6Z/yaepf8mnrL/Jp6//yaezP8mntj/Jp7l/yae8v8zngD/M54M/zOeGf8znib/M54z/zOeP/8znkz/M55Z/zOeZv8znnL/M55//zOejP8znpn/M56l/zOesv8znr//M57M/zOe2P8znuX/M57y/z+eAP8/ngz/P54Z/z+eJv8/njP/P54//z+eTP8/nln/P55m/z+ecv8/nn//P56M/z+emf8/nqX/P56y/z+ev/8/nsz/P57Y/z+e5f8/nvL/TJ4A/0yeDP9Mnhn/TJ4m/0yeM/9Mnj//TJ5M/0yeWf9Mnmb/TJ5y/0yef/9Mnoz/TJ6Z/0yepf9MnrL/TJ6//0yezP9Mntj/TJ7l/0ye8v9ZngD/WZ4M/1meGf9Znib/WZ4z/1meP/9Znkz/WZ5Z/1meZv9ZnnL/WZ5//1mejP9Znpn/WZ6l/1mesv9Znr//WZ7M/1me2P9ZnuX/WZ7y/2aeA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iev//Ynsz/2J7Y/9ie5f/YnvL/5Z4A/+WeDP/lnhn/5Z4m/+WeM//lnj//5Z5M/+WeWf/lnmb/5Z5y/+Wef//lnoz/5Z6Z/+Wepf/lnrL/5Z6//+WezP/lntj/5Z7l/+We8v/yngD/8p4M//KeGf/ynib/8p4z//KeP//ynkz/8p5Z//KeZv/ynnL/8p5///KejP/ynpn/8p6l//Kesv/ynr//8p7M//Ke2P/ynuX/8p7y/w==","dtype":"uint32","shape":[20,20]}],"x":[0],"y":[0]}},"id":"37958a8d-8d0a-4772-8ccf-96ca0eef2bc7","type":"ColumnDataSource"},{"attributes":{},"id":"73e28ea6-a911-437e-aa03-abf3588b88c5","type":"BasicTickFormatter"},{"attributes":{},"id":"7b3f6f6d-9c16-4958-907f-e1e818e3daa1","type":"BasicTickFormatter"},{"attributes":{},"id":"e4630a06-6cbd-40a7-b8c8-33de61c55143","type":"PanTool"},{"attributes":{"below":[{"id":"2c4280af-a0ff-455d-9637-b249f73539bf","type":"LinearAxis"}],"left":[{"id":"27dba90f-3aa7-4c3b-b235-a2d103d38edd","type":"LinearAxis"}],"plot_height":400,"plot_width":400,"renderers":[{"id":"2c4280af-a0ff-455d-9637-b249f73539bf","type":"LinearAxis"},{"id":"40e9fa5d-d71c-4590-83e8-25c0c2a74138","type":"Grid"},{"id":"27dba90f-3aa7-4c3b-b235-a2d103d38edd","type":"LinearAxis"},{"id":"9a969b97-d024-4a1e-b115-b3bf1edc86cf","type":"Grid"},{"id":"7c2e57bc-709d-4b66-ad73-838583e69349","type":"BoxAnnotation"},{"id":"c6d3b4e3-6c4a-4a53-aee5-de3f5e551260","type":"GlyphRenderer"}],"title":{"id":"d3adcdf0-83f8-4900-a5b7-bae1adaf56a6","type":"Title"},"toolbar":{"id":"b3168878-45cd-42a4-816b-a50b6cc9584f","type":"Toolbar"},"x_range":{"id":"1986cdde-b03b-44af-be56-fc6824e2b475","type":"Range1d"},"x_scale":{"id":"0da42cc8-f869-41a4-928d-4636a260c349","type":"LinearScale"},"y_range":{"id":"4d7f5c25-a627-41eb-879b-ba20d3f8cf2c","type":"Range1d"},"y_scale":{"id":"cc95079d-11ab-4979-ae03-940e7332dba2","type":"LinearScale"}},"id":"8f8bb0da-a775-488e-8ff1-79fa4788409e","subtype":"Figure","type":"Plot"},{"attributes":{"data_source":{"id":"37958a8d-8d0a-4772-8ccf-96ca0eef2bc7","type":"ColumnDataSource"},"glyph":{"id":"62b05ba5-3067-40db-82ce-d9789a21fd53","type":"ImageRGBA"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"552dae6d-f509-4335-b877-9c7b436df0cc","type":"ImageRGBA"},"selection_glyph":null,"view":{"id":"67b63006-91bb-4a8e-b658-6113a7a7c37a","type":"CDSView"}},"id":"c6d3b4e3-6c4a-4a53-aee5-de3f5e551260","type":"GlyphRenderer"},{"attributes":{"formatter":{"id":"73e28ea6-a911-437e-aa03-abf3588b88c5","type":"BasicTickFormatter"},"plot":{"id":"8f8bb0da-a775-488e-8ff1-79fa4788409e","subtype":"Figure","type":"Plot"},"ticker":{"id":"f4b97952-ecf3-47e8-bfe1-704f6286bbc4","type":"BasicTicker"}},"id":"27dba90f-3aa7-4c3b-b235-a2d103d38edd","type":"LinearAxis"}],"root_ids":["8f8bb0da-a775-488e-8ff1-79fa4788409e"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"002b3496-51bf-41cd-997a-7ab73bdd1363","elementid":"20a9c756-3769-4ba7-8b8f-bbf312b7fd3f","modelid":"8f8bb0da-a775-488e-8ff1-79fa4788409e"}];
                
                    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);
})();
