(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("ee2a1f5e-6034-400f-9322-0013060273ad");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'ee2a1f5e-6034-400f-9322-0013060273ad' 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 = {"a7a4de2e-fffb-4fa0-b183-0577d4801803":{"roots":{"references":[{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#d7191c"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"90b8c683-2a20-49b7-a153-0d1f38e86588","type":"Line"},{"attributes":{},"id":"7686d221-d93a-4a00-a155-882ff9451891","type":"WheelZoomTool"},{"attributes":{},"id":"c530e960-6db4-47a3-8178-80a04938d8fa","type":"BasicTicker"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#abdda4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"364bcd4b-85a2-4887-a354-ad64c8be3980","type":"Line"},{"attributes":{"data_source":{"id":"a53c1b00-9d18-434f-bb50-1d675bb626ec","type":"ColumnDataSource"},"glyph":{"id":"e6a36338-0ee7-49d5-8b39-81f3c89d8c92","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"ae52735a-8f98-41a0-aa3a-929cf4bb61ff","type":"Line"},"nonselection_glyph":{"id":"97c32a46-0046-48db-bcf2-38ee76f645f1","type":"Line"},"selection_glyph":null,"view":{"id":"074be063-acb8-4b50-ba03-5ae7db24a5da","type":"CDSView"}},"id":"3d8748f9-dc6f-4791-ac85-6aefc21218e1","type":"GlyphRenderer"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]},"y":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]}}},"id":"2dcd0fd4-3a90-4b15-9e4d-0b89e905969c","type":"ColumnDataSource"},{"attributes":{},"id":"963429b4-4bd6-4cc6-945f-4632869ef19a","type":"LinearScale"},{"attributes":{"source":{"id":"d8b79113-0571-4c3d-8127-d4dbba05eba8","type":"ColumnDataSource"}},"id":"6c0e200b-269d-4165-b543-25fda91600d7","type":"CDSView"},{"attributes":{"formatter":{"id":"a1ffa800-9cea-45d1-95cb-8e2f9e3bf674","type":"DatetimeTickFormatter"},"plot":{"id":"0f30fed5-300c-4d47-a277-9db87e098bbe","subtype":"Figure","type":"Plot"},"ticker":{"id":"e8677234-ec80-4efa-8f73-c9be2f6cbfaa","type":"DatetimeTicker"}},"id":"4f430459-c40b-4309-8687-c1e3fe84f997","type":"DatetimeAxis"},{"attributes":{},"id":"c2dcb3fc-f367-457f-b9b4-afd01b0238c3","type":"LinearScale"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"97c32a46-0046-48db-bcf2-38ee76f645f1","type":"Line"},{"attributes":{},"id":"fadab4f5-b4f7-42d2-8d50-45ec4f5e7b3c","type":"YearsTicker"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"acfa0974-fec0-4c6f-95d4-0c7d4aade115","type":"Line"},{"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":"acb546c4-f11e-4bed-89f6-336b784261b3","type":"BoxAnnotation"},{"attributes":{"callback":null},"id":"f3f55d87-7092-4ff2-99e5-00db6389df87","type":"DataRange1d"},{"attributes":{"data_source":{"id":"d8b79113-0571-4c3d-8127-d4dbba05eba8","type":"ColumnDataSource"},"glyph":{"id":"bb79e956-3e5a-4170-a2c7-998b0b1108ea","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"4efa9fed-7f5a-4d33-bd37-2f8f4b960b72","type":"Line"},"nonselection_glyph":{"id":"acfa0974-fec0-4c6f-95d4-0c7d4aade115","type":"Line"},"selection_glyph":null,"view":{"id":"6c0e200b-269d-4165-b543-25fda91600d7","type":"CDSView"}},"id":"24e5f13e-e5c5-4f65-bd99-59eef6c8b5df","type":"GlyphRenderer"},{"attributes":{"plot":null,"text":"Click on legend entries to mute the corresponding lines"},"id":"29936564-93a3-4189-9686-74822c9c4bb1","type":"Title"},{"attributes":{"months":[0,2,4,6,8,10]},"id":"3d1f89b3-8473-4177-81c3-a47a7995bf5e","type":"MonthsTicker"},{"attributes":{"overlay":{"id":"acb546c4-f11e-4bed-89f6-336b784261b3","type":"BoxAnnotation"}},"id":"b14b2c73-68e9-45b6-9722-938f1b334174","type":"BoxZoomTool"},{"attributes":{"plot":{"id":"0f30fed5-300c-4d47-a277-9db87e098bbe","subtype":"Figure","type":"Plot"},"ticker":{"id":"e8677234-ec80-4efa-8f73-c9be2f6cbfaa","type":"DatetimeTicker"}},"id":"81415159-5884-43c1-8200-3ff9bce3c99e","type":"Grid"},{"attributes":{},"id":"d55f0c75-c781-4046-a9f0-fa3a71e3a134","type":"PanTool"},{"attributes":{"days":[1,4,7,10,13,16,19,22,25,28]},"id":"ce6a8103-c0d4-4461-950b-cb9b94a1a4c2","type":"DaysTicker"},{"attributes":{"source":{"id":"2dcd0fd4-3a90-4b15-9e4d-0b89e905969c","type":"ColumnDataSource"}},"id":"25d34046-6aa9-4e81-a5e3-f2eb241780d3","type":"CDSView"},{"attributes":{"source":{"id":"a53c1b00-9d18-434f-bb50-1d675bb626ec","type":"ColumnDataSource"}},"id":"074be063-acb8-4b50-ba03-5ae7db24a5da","type":"CDSView"},{"attributes":{},"id":"52cf8745-3604-42bc-a64d-d496300c7650","type":"SaveTool"},{"attributes":{"data_source":{"id":"2a994479-061e-4152-a59a-81fadf3fa13d","type":"ColumnDataSource"},"glyph":{"id":"90b8c683-2a20-49b7-a153-0d1f38e86588","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"aa723bfe-e195-4a7f-8961-2262efca1036","type":"Line"},"nonselection_glyph":{"id":"c529fd78-442e-4298-b907-a379d84a6f6e","type":"Line"},"selection_glyph":null,"view":{"id":"425ba0d2-474e-4a6e-89e6-cfad82b310de","type":"CDSView"}},"id":"fe0e758a-301a-42b6-bc56-a1a41b0e2435","type":"GlyphRenderer"},{"attributes":{"below":[{"id":"4f430459-c40b-4309-8687-c1e3fe84f997","type":"DatetimeAxis"}],"left":[{"id":"815e0072-cb89-4472-bdc0-a269e19abec2","type":"LinearAxis"}],"plot_height":250,"plot_width":800,"renderers":[{"id":"4f430459-c40b-4309-8687-c1e3fe84f997","type":"DatetimeAxis"},{"id":"81415159-5884-43c1-8200-3ff9bce3c99e","type":"Grid"},{"id":"815e0072-cb89-4472-bdc0-a269e19abec2","type":"LinearAxis"},{"id":"6b565fb2-c5d0-4c7b-a08c-57dbe46a4b61","type":"Grid"},{"id":"acb546c4-f11e-4bed-89f6-336b784261b3","type":"BoxAnnotation"},{"id":"af542271-09a8-48e8-8206-1d34bef666c8","type":"Legend"},{"id":"24e5f13e-e5c5-4f65-bd99-59eef6c8b5df","type":"GlyphRenderer"},{"id":"db33b540-7b88-4aec-acb6-b9ecb9c3394f","type":"GlyphRenderer"},{"id":"3d8748f9-dc6f-4791-ac85-6aefc21218e1","type":"GlyphRenderer"},{"id":"fe0e758a-301a-42b6-bc56-a1a41b0e2435","type":"GlyphRenderer"}],"title":{"id":"29936564-93a3-4189-9686-74822c9c4bb1","type":"Title"},"toolbar":{"id":"c61635fa-3215-4838-864f-139e367c763a","type":"Toolbar"},"x_range":{"id":"f3f55d87-7092-4ff2-99e5-00db6389df87","type":"DataRange1d"},"x_scale":{"id":"c2dcb3fc-f367-457f-b9b4-afd01b0238c3","type":"LinearScale"},"y_range":{"id":"a21c68ab-b2ec-45c0-a1a9-f22bb0986a04","type":"DataRange1d"},"y_scale":{"id":"963429b4-4bd6-4cc6-945f-4632869ef19a","type":"LinearScale"}},"id":"0f30fed5-300c-4d47-a277-9db87e098bbe","subtype":"Figure","type":"Plot"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#abdda4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"64848fa8-7668-4893-b796-6761a2501267","type":"Line"},{"attributes":{"base":60,"mantissas":[1,2,5,10,15,20,30],"max_interval":1800000.0,"min_interval":1000.0,"num_minor_ticks":0},"id":"582c3da8-4070-4f25-a4b6-28cc56a8ed91","type":"AdaptiveTicker"},{"attributes":{},"id":"fe2da2d6-0053-4674-837f-d818de7196f4","type":"HelpTool"},{"attributes":{"months":[0,4,8]},"id":"2cacd4fc-4a11-4818-bcff-664a3412caba","type":"MonthsTicker"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#fdae61"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"e6a36338-0ee7-49d5-8b39-81f3c89d8c92","type":"Line"},{"attributes":{"months":[0,6]},"id":"69a30a16-4b1f-4255-ab27-0e8c7b0b721e","type":"MonthsTicker"},{"attributes":{"mantissas":[1,2,5],"max_interval":500.0,"num_minor_ticks":0},"id":"08a388ca-a8d3-4ca1-b610-feba084bcea2","type":"AdaptiveTicker"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#d7191c"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"aa723bfe-e195-4a7f-8961-2262efca1036","type":"Line"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 22912 characters]","dtype":"float64","shape":[2148]},"y":{"__ndarray__":"[encoded data, 22912 characters]","dtype":"float64","shape":[2148]}}},"id":"2a994479-061e-4152-a59a-81fadf3fa13d","type":"ColumnDataSource"},{"attributes":{"label":{"value":"GOOG"},"renderers":[{"id":"fe0e758a-301a-42b6-bc56-a1a41b0e2435","type":"GlyphRenderer"}]},"id":"b38959e4-b7c3-4447-8e6b-dbaaa7631d7a","type":"LegendItem"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]},"y":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]}}},"id":"a53c1b00-9d18-434f-bb50-1d675bb626ec","type":"ColumnDataSource"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"c529fd78-442e-4298-b907-a379d84a6f6e","type":"Line"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#fdae61"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"ae52735a-8f98-41a0-aa3a-929cf4bb61ff","type":"Line"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#2b83ba"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"bb79e956-3e5a-4170-a2c7-998b0b1108ea","type":"Line"},{"attributes":{"dimension":1,"plot":{"id":"0f30fed5-300c-4d47-a277-9db87e098bbe","subtype":"Figure","type":"Plot"},"ticker":{"id":"c530e960-6db4-47a3-8178-80a04938d8fa","type":"BasicTicker"}},"id":"6b565fb2-c5d0-4c7b-a08c-57dbe46a4b61","type":"Grid"},{"attributes":{"months":[0,1,2,3,4,5,6,7,8,9,10,11]},"id":"199ff04c-a5b8-4dcc-a613-a40f8c8fb8fa","type":"MonthsTicker"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"d55f0c75-c781-4046-a9f0-fa3a71e3a134","type":"PanTool"},{"id":"7686d221-d93a-4a00-a155-882ff9451891","type":"WheelZoomTool"},{"id":"b14b2c73-68e9-45b6-9722-938f1b334174","type":"BoxZoomTool"},{"id":"52cf8745-3604-42bc-a64d-d496300c7650","type":"SaveTool"},{"id":"569e66bf-8974-46ed-8471-167d0d0d1628","type":"ResetTool"},{"id":"fe2da2d6-0053-4674-837f-d818de7196f4","type":"HelpTool"}]},"id":"c61635fa-3215-4838-864f-139e367c763a","type":"Toolbar"},{"attributes":{"base":24,"mantissas":[1,2,4,6,8,12],"max_interval":43200000.0,"min_interval":3600000.0,"num_minor_ticks":0},"id":"d2903a30-15ec-4412-83d9-1d1cdac16fe6","type":"AdaptiveTicker"},{"attributes":{"num_minor_ticks":5,"tickers":[{"id":"08a388ca-a8d3-4ca1-b610-feba084bcea2","type":"AdaptiveTicker"},{"id":"582c3da8-4070-4f25-a4b6-28cc56a8ed91","type":"AdaptiveTicker"},{"id":"d2903a30-15ec-4412-83d9-1d1cdac16fe6","type":"AdaptiveTicker"},{"id":"85083cb3-488a-42fa-8eef-b1337cab5336","type":"DaysTicker"},{"id":"ce6a8103-c0d4-4461-950b-cb9b94a1a4c2","type":"DaysTicker"},{"id":"f392669c-bedb-4d77-a4ed-79039aab0a73","type":"DaysTicker"},{"id":"800dc3c1-6683-4cf3-854f-c02f0b2a2a2b","type":"DaysTicker"},{"id":"199ff04c-a5b8-4dcc-a613-a40f8c8fb8fa","type":"MonthsTicker"},{"id":"3d1f89b3-8473-4177-81c3-a47a7995bf5e","type":"MonthsTicker"},{"id":"2cacd4fc-4a11-4818-bcff-664a3412caba","type":"MonthsTicker"},{"id":"69a30a16-4b1f-4255-ab27-0e8c7b0b721e","type":"MonthsTicker"},{"id":"fadab4f5-b4f7-42d2-8d50-45ec4f5e7b3c","type":"YearsTicker"}]},"id":"e8677234-ec80-4efa-8f73-c9be2f6cbfaa","type":"DatetimeTicker"},{"attributes":{"callback":null},"id":"a21c68ab-b2ec-45c0-a1a9-f22bb0986a04","type":"DataRange1d"},{"attributes":{"days":[1,15]},"id":"800dc3c1-6683-4cf3-854f-c02f0b2a2a2b","type":"DaysTicker"},{"attributes":{},"id":"a1ffa800-9cea-45d1-95cb-8e2f9e3bf674","type":"DatetimeTickFormatter"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]},"y":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]}}},"id":"d8b79113-0571-4c3d-8127-d4dbba05eba8","type":"ColumnDataSource"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"1552e916-2b4e-41ed-b05d-fc0f8ce678e6","type":"Line"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#2b83ba"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"4efa9fed-7f5a-4d33-bd37-2f8f4b960b72","type":"Line"},{"attributes":{"formatter":{"id":"4ecbd596-1661-48f6-bddd-b3b775a37b06","type":"BasicTickFormatter"},"plot":{"id":"0f30fed5-300c-4d47-a277-9db87e098bbe","subtype":"Figure","type":"Plot"},"ticker":{"id":"c530e960-6db4-47a3-8178-80a04938d8fa","type":"BasicTicker"}},"id":"815e0072-cb89-4472-bdc0-a269e19abec2","type":"LinearAxis"},{"attributes":{"data_source":{"id":"2dcd0fd4-3a90-4b15-9e4d-0b89e905969c","type":"ColumnDataSource"},"glyph":{"id":"364bcd4b-85a2-4887-a354-ad64c8be3980","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"64848fa8-7668-4893-b796-6761a2501267","type":"Line"},"nonselection_glyph":{"id":"1552e916-2b4e-41ed-b05d-fc0f8ce678e6","type":"Line"},"selection_glyph":null,"view":{"id":"25d34046-6aa9-4e81-a5e3-f2eb241780d3","type":"CDSView"}},"id":"db33b540-7b88-4aec-acb6-b9ecb9c3394f","type":"GlyphRenderer"},{"attributes":{},"id":"569e66bf-8974-46ed-8471-167d0d0d1628","type":"ResetTool"},{"attributes":{"days":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},"id":"85083cb3-488a-42fa-8eef-b1337cab5336","type":"DaysTicker"},{"attributes":{},"id":"4ecbd596-1661-48f6-bddd-b3b775a37b06","type":"BasicTickFormatter"},{"attributes":{"label":{"value":"AAPL"},"renderers":[{"id":"24e5f13e-e5c5-4f65-bd99-59eef6c8b5df","type":"GlyphRenderer"}]},"id":"eb513004-24c4-4ebc-9507-2ef020be6c05","type":"LegendItem"},{"attributes":{"label":{"value":"MSFT"},"renderers":[{"id":"3d8748f9-dc6f-4791-ac85-6aefc21218e1","type":"GlyphRenderer"}]},"id":"bf676624-ecae-43f7-8d32-c0bcd5e6b4d1","type":"LegendItem"},{"attributes":{"source":{"id":"2a994479-061e-4152-a59a-81fadf3fa13d","type":"ColumnDataSource"}},"id":"425ba0d2-474e-4a6e-89e6-cfad82b310de","type":"CDSView"},{"attributes":{"label":{"value":"IBM"},"renderers":[{"id":"db33b540-7b88-4aec-acb6-b9ecb9c3394f","type":"GlyphRenderer"}]},"id":"e015d0f0-5aef-4f2e-a540-42ddbccdde03","type":"LegendItem"},{"attributes":{"days":[1,8,15,22]},"id":"f392669c-bedb-4d77-a4ed-79039aab0a73","type":"DaysTicker"},{"attributes":{"click_policy":"mute","items":[{"id":"eb513004-24c4-4ebc-9507-2ef020be6c05","type":"LegendItem"},{"id":"e015d0f0-5aef-4f2e-a540-42ddbccdde03","type":"LegendItem"},{"id":"bf676624-ecae-43f7-8d32-c0bcd5e6b4d1","type":"LegendItem"},{"id":"b38959e4-b7c3-4447-8e6b-dbaaa7631d7a","type":"LegendItem"}],"location":"top_left","plot":{"id":"0f30fed5-300c-4d47-a277-9db87e098bbe","subtype":"Figure","type":"Plot"}},"id":"af542271-09a8-48e8-8206-1d34bef666c8","type":"Legend"}],"root_ids":["0f30fed5-300c-4d47-a277-9db87e098bbe"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"a7a4de2e-fffb-4fa0-b183-0577d4801803","elementid":"ee2a1f5e-6034-400f-9322-0013060273ad","modelid":"0f30fed5-300c-4d47-a277-9db87e098bbe"}];
                
                    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);
})();
