(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("39ce291e-bf62-4551-aaaa-0ab9dd1af8ca");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '39ce291e-bf62-4551-aaaa-0ab9dd1af8ca' 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 = {"593b23dc-d345-439f-82b5-bcc2aabfacc8":{"roots":{"references":[{"attributes":{},"id":"2654438f-4cd0-4d93-8d4a-1e1543d20614","type":"BasicTicker"},{"attributes":{},"id":"be0a77f8-2433-4dc2-9f78-658f827eecc2","type":"LinearScale"},{"attributes":{"callback":null,"column_names":["ys","xs","line_color"],"data":{"line_color":["#C6DBEF","#9ECAE1","#6BAED6","#4292C6","#2171B5","#08519C","#08306B"],"xs":[{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]}],"ys":[{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]},{"__ndarray__":"[encoded data, 25400 characters]","dtype":"float64","shape":[2381]}]}},"id":"42814f5b-6a65-4538-ab2e-dd3644f613e4","type":"ColumnDataSource"},{"attributes":{"formatter":{"id":"fb5f0bd6-d800-4b92-bac8-06d15647889a","type":"BasicTickFormatter"},"plot":{"id":"9fc738dc-8573-4fb2-8580-2338f1451a6f","subtype":"Figure","type":"Plot"},"ticker":{"id":"614d9296-d62c-4075-9d76-32531eb5c014","type":"BasicTicker"}},"id":"aeeafae0-70c2-424e-a690-689099a63783","type":"LinearAxis"},{"attributes":{},"id":"fb5f0bd6-d800-4b92-bac8-06d15647889a","type":"BasicTickFormatter"},{"attributes":{"plot":null,"text":"lorenz example"},"id":"dd6694cc-d4e4-499b-8daf-d72009ccd476","type":"Title"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"640a2af1-32a8-4350-8df4-3933233faba7","type":"PanTool"},{"id":"45c641d6-a068-41d8-8245-0d1eaefc3a23","type":"WheelZoomTool"},{"id":"c1802a1e-0d82-475f-b39c-769f968b1602","type":"BoxZoomTool"},{"id":"190920bf-e1fe-4a91-9902-a86771dd7b7d","type":"SaveTool"},{"id":"33bbdf3b-867a-4ed2-a392-3215e5d7608f","type":"ResetTool"},{"id":"6301ce3b-5709-48c2-9865-d08b0d8f3466","type":"HelpTool"}]},"id":"3dcd37d3-da90-40fe-acef-83a29c759b4e","type":"Toolbar"},{"attributes":{"data_source":{"id":"42814f5b-6a65-4538-ab2e-dd3644f613e4","type":"ColumnDataSource"},"glyph":{"id":"0e0d6ad6-a7b5-435f-8271-2edcf583f1b6","type":"MultiLine"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"2932c151-4f8f-435f-bc96-9ef3b1db2025","type":"MultiLine"},"selection_glyph":null,"view":{"id":"93f3e40a-4221-41ad-9e1d-cc94ad5700e1","type":"CDSView"}},"id":"0da198f1-cc46-4fdd-bbe3-1e8314466c77","type":"GlyphRenderer"},{"attributes":{"below":[{"id":"aeeafae0-70c2-424e-a690-689099a63783","type":"LinearAxis"}],"left":[{"id":"c1c79e4d-6be4-4fec-8d5e-cdf052b4c4ca","type":"LinearAxis"}],"renderers":[{"id":"aeeafae0-70c2-424e-a690-689099a63783","type":"LinearAxis"},{"id":"88fcf046-3435-466f-8729-527585950eab","type":"Grid"},{"id":"c1c79e4d-6be4-4fec-8d5e-cdf052b4c4ca","type":"LinearAxis"},{"id":"1d62a717-de7e-4c98-bcea-65afe5e09030","type":"Grid"},{"id":"62011088-5a10-47ca-aad7-dc0d99a4bcdd","type":"BoxAnnotation"},{"id":"0da198f1-cc46-4fdd-bbe3-1e8314466c77","type":"GlyphRenderer"}],"title":{"id":"dd6694cc-d4e4-499b-8daf-d72009ccd476","type":"Title"},"toolbar":{"id":"3dcd37d3-da90-40fe-acef-83a29c759b4e","type":"Toolbar"},"x_range":{"id":"c3d0855d-5778-472e-acd2-ebde8d95e303","type":"DataRange1d"},"x_scale":{"id":"44ff7213-3c28-405c-8cea-d34e7b12ef79","type":"LinearScale"},"y_range":{"id":"dc76a23a-0ad5-4b38-88ae-8206076d8890","type":"DataRange1d"},"y_scale":{"id":"be0a77f8-2433-4dc2-9f78-658f827eecc2","type":"LinearScale"}},"id":"9fc738dc-8573-4fb2-8580-2338f1451a6f","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"45c641d6-a068-41d8-8245-0d1eaefc3a23","type":"WheelZoomTool"},{"attributes":{},"id":"640a2af1-32a8-4350-8df4-3933233faba7","type":"PanTool"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":1.5},"xs":{"field":"xs"},"ys":{"field":"ys"}},"id":"2932c151-4f8f-435f-bc96-9ef3b1db2025","type":"MultiLine"},{"attributes":{"overlay":{"id":"62011088-5a10-47ca-aad7-dc0d99a4bcdd","type":"BoxAnnotation"}},"id":"c1802a1e-0d82-475f-b39c-769f968b1602","type":"BoxZoomTool"},{"attributes":{"source":{"id":"42814f5b-6a65-4538-ab2e-dd3644f613e4","type":"ColumnDataSource"}},"id":"93f3e40a-4221-41ad-9e1d-cc94ad5700e1","type":"CDSView"},{"attributes":{},"id":"614d9296-d62c-4075-9d76-32531eb5c014","type":"BasicTicker"},{"attributes":{"dimension":1,"plot":{"id":"9fc738dc-8573-4fb2-8580-2338f1451a6f","subtype":"Figure","type":"Plot"},"ticker":{"id":"2654438f-4cd0-4d93-8d4a-1e1543d20614","type":"BasicTicker"}},"id":"1d62a717-de7e-4c98-bcea-65afe5e09030","type":"Grid"},{"attributes":{},"id":"6832816c-4eaf-4d9e-8e56-316996c592df","type":"BasicTickFormatter"},{"attributes":{},"id":"190920bf-e1fe-4a91-9902-a86771dd7b7d","type":"SaveTool"},{"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":"62011088-5a10-47ca-aad7-dc0d99a4bcdd","type":"BoxAnnotation"},{"attributes":{"callback":null},"id":"dc76a23a-0ad5-4b38-88ae-8206076d8890","type":"DataRange1d"},{"attributes":{},"id":"44ff7213-3c28-405c-8cea-d34e7b12ef79","type":"LinearScale"},{"attributes":{},"id":"6301ce3b-5709-48c2-9865-d08b0d8f3466","type":"HelpTool"},{"attributes":{"plot":{"id":"9fc738dc-8573-4fb2-8580-2338f1451a6f","subtype":"Figure","type":"Plot"},"ticker":{"id":"614d9296-d62c-4075-9d76-32531eb5c014","type":"BasicTicker"}},"id":"88fcf046-3435-466f-8729-527585950eab","type":"Grid"},{"attributes":{},"id":"33bbdf3b-867a-4ed2-a392-3215e5d7608f","type":"ResetTool"},{"attributes":{"formatter":{"id":"6832816c-4eaf-4d9e-8e56-316996c592df","type":"BasicTickFormatter"},"plot":{"id":"9fc738dc-8573-4fb2-8580-2338f1451a6f","subtype":"Figure","type":"Plot"},"ticker":{"id":"2654438f-4cd0-4d93-8d4a-1e1543d20614","type":"BasicTicker"}},"id":"c1c79e4d-6be4-4fec-8d5e-cdf052b4c4ca","type":"LinearAxis"},{"attributes":{"callback":null},"id":"c3d0855d-5778-472e-acd2-ebde8d95e303","type":"DataRange1d"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"field":"line_color"},"line_width":{"value":1.5},"xs":{"field":"xs"},"ys":{"field":"ys"}},"id":"0e0d6ad6-a7b5-435f-8271-2edcf583f1b6","type":"MultiLine"}],"root_ids":["9fc738dc-8573-4fb2-8580-2338f1451a6f"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"593b23dc-d345-439f-82b5-bcc2aabfacc8","elementid":"39ce291e-bf62-4551-aaaa-0ab9dd1af8ca","modelid":"9fc738dc-8573-4fb2-8580-2338f1451a6f"}];
                
                    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);
})();
