(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("19dfc3b4-7f92-4ff2-b84f-00561be82075");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '19dfc3b4-7f92-4ff2-b84f-00561be82075' 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 = {"49f20137-db6e-424b-9ffb-e648dc793982":{"roots":{"references":[{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"bb973fe4-dae4-4384-83d5-6ae0717bed81","type":"PanTool"},{"id":"611c0ba7-15f9-464d-b132-e3f17d682828","type":"WheelZoomTool"},{"id":"380124d4-f8ee-4ee7-930c-d56cd2bec037","type":"BoxZoomTool"},{"id":"ad1ffbb9-0dab-4e28-80f2-31f84b2cf940","type":"SaveTool"},{"id":"b77cdc35-b83a-4d64-9c55-ccce9ace75ff","type":"ResetTool"},{"id":"1fb9e039-53b6-45d5-ad83-f1a12da992b4","type":"HelpTool"}]},"id":"7081a0ca-9fcb-403b-b31e-12f85d3ec955","type":"Toolbar"},{"attributes":{},"id":"a51cd843-4b0d-4c25-acb7-dd1361a5b6b5","type":"BasicTickFormatter"},{"attributes":{"source":{"id":"d9f58299-860d-480d-b9a9-1a57072dac0f","type":"ColumnDataSource"}},"id":"dba634ae-967b-448e-8e0c-1d2242bb0ea1","type":"CDSView"},{"attributes":{"click_policy":"mute","items":[{"id":"b263147f-e2f3-4acd-bef0-75e8a7112ff8","type":"LegendItem"},{"id":"5344a5ff-673f-4f0b-bdc8-6f7809d17e48","type":"LegendItem"},{"id":"b6d723ef-7392-4509-9c2e-75be06b22718","type":"LegendItem"},{"id":"b19f2131-8aa7-449d-bc75-2cccbedb1bbd","type":"LegendItem"}],"location":"top_left","plot":{"id":"9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58","subtype":"Figure","type":"Plot"}},"id":"98f52331-d758-41db-b847-a61d30c9e47e","type":"Legend"},{"attributes":{"base":24,"mantissas":[1,2,4,6,8,12],"max_interval":43200000.0,"min_interval":3600000.0,"num_minor_ticks":0},"id":"78cdbaf4-1a50-4720-9bbe-ee62f05a31ee","type":"AdaptiveTicker"},{"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":"5ebc870d-2309-4fd9-a744-962a1f7cd0d5","type":"BoxAnnotation"},{"attributes":{"formatter":{"id":"6a9f02e8-1222-4094-8f07-be337a0a21ab","type":"DatetimeTickFormatter"},"plot":{"id":"9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58","subtype":"Figure","type":"Plot"},"ticker":{"id":"711db360-7287-44d7-a67e-cbb667ed34f9","type":"DatetimeTicker"}},"id":"8e0c3267-9ae6-4198-b1a7-3f079debe8e8","type":"DatetimeAxis"},{"attributes":{},"id":"bb973fe4-dae4-4384-83d5-6ae0717bed81","type":"PanTool"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#abdda4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"bb605650-548f-4511-a7e3-d572a3f0f9cd","type":"Line"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"90a6dd2c-9deb-4ef3-ae76-4b9e64feff0a","type":"Line"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"e6a5e832-14c9-492a-b71f-ca99d827b033","type":"Line"},{"attributes":{"callback":null},"id":"576171b6-568e-4e58-a5e5-3491295ac88b","type":"DataRange1d"},{"attributes":{},"id":"fe3594df-f432-4db7-8846-8b7fd611e25c","type":"LinearScale"},{"attributes":{"source":{"id":"22e10456-6680-4143-a597-839041e0a966","type":"ColumnDataSource"}},"id":"4f183e99-525b-4c69-9886-006745785263","type":"CDSView"},{"attributes":{"plot":null,"text":"Click on legend entries to mute the corresponding lines"},"id":"25dea14f-5b7a-46fa-9bb3-7087543d0ce4","type":"Title"},{"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":"2ef81256-5188-4a9a-b55e-d2a17fce2fe5","type":"DaysTicker"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#2b83ba"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"0065881d-ca3e-4393-a7f8-b81268cb8121","type":"Line"},{"attributes":{"label":{"value":"IBM"},"renderers":[{"id":"c594d7b4-2d81-4b27-9b76-04981c7918a4","type":"GlyphRenderer"}]},"id":"5344a5ff-673f-4f0b-bdc8-6f7809d17e48","type":"LegendItem"},{"attributes":{"days":[1,15]},"id":"c7afa3fc-82a4-46ae-aa81-87bc3e4ce0ee","type":"DaysTicker"},{"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":"d9f58299-860d-480d-b9a9-1a57072dac0f","type":"ColumnDataSource"},{"attributes":{},"id":"6a9f02e8-1222-4094-8f07-be337a0a21ab","type":"DatetimeTickFormatter"},{"attributes":{"base":60,"mantissas":[1,2,5,10,15,20,30],"max_interval":1800000.0,"min_interval":1000.0,"num_minor_ticks":0},"id":"a1df7901-aa1d-4766-8153-3baa30f4812b","type":"AdaptiveTicker"},{"attributes":{},"id":"12f4680e-ea83-4a8d-9349-afd0ac448774","type":"YearsTicker"},{"attributes":{"label":{"value":"AAPL"},"renderers":[{"id":"21b65bb5-da1b-4a94-acb2-ec3c5fd5bf42","type":"GlyphRenderer"}]},"id":"b263147f-e2f3-4acd-bef0-75e8a7112ff8","type":"LegendItem"},{"attributes":{"months":[0,2,4,6,8,10]},"id":"9b4e78b4-1a94-4070-be86-a24142bf1870","type":"MonthsTicker"},{"attributes":{"months":[0,1,2,3,4,5,6,7,8,9,10,11]},"id":"ed1d7547-b200-42ec-960b-a247b3656b50","type":"MonthsTicker"},{"attributes":{},"id":"611c0ba7-15f9-464d-b132-e3f17d682828","type":"WheelZoomTool"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#d7191c"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"06dfb66d-dfad-4f66-bee7-088d63feeb87","type":"Line"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#d7191c"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"519c080a-6d79-4cc8-aa6b-913a022b9b36","type":"Line"},{"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":"b4042b17-15ac-45c7-82cb-837c6cdd2f72","type":"ColumnDataSource"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"0f2763b4-2410-4fb6-9356-1c0229e0aefb","type":"Line"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#abdda4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"f0ae4550-ff53-4d8b-8277-89eef28eafac","type":"Line"},{"attributes":{},"id":"1fb9e039-53b6-45d5-ad83-f1a12da992b4","type":"HelpTool"},{"attributes":{"overlay":{"id":"5ebc870d-2309-4fd9-a744-962a1f7cd0d5","type":"BoxAnnotation"}},"id":"380124d4-f8ee-4ee7-930c-d56cd2bec037","type":"BoxZoomTool"},{"attributes":{"dimension":1,"plot":{"id":"9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58","subtype":"Figure","type":"Plot"},"ticker":{"id":"8b2c60d3-83c3-4847-9809-ec0622b66527","type":"BasicTicker"}},"id":"2e2cb76e-d700-4a62-9bcf-a51c7eecbdb5","type":"Grid"},{"attributes":{"months":[0,6]},"id":"fc00aa08-94b9-4e71-a789-6346e1766d82","type":"MonthsTicker"},{"attributes":{"data_source":{"id":"d9f58299-860d-480d-b9a9-1a57072dac0f","type":"ColumnDataSource"},"glyph":{"id":"71dc58dc-be45-49ea-b25b-af46650ed534","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"feff7988-edb3-422f-b6b6-6480f8bc2dca","type":"Line"},"nonselection_glyph":{"id":"0f2763b4-2410-4fb6-9356-1c0229e0aefb","type":"Line"},"selection_glyph":null,"view":{"id":"dba634ae-967b-448e-8e0c-1d2242bb0ea1","type":"CDSView"}},"id":"f03702d2-302c-4fa9-a53c-cc18f0a138ce","type":"GlyphRenderer"},{"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":"31f1f93b-a4f1-454e-80dd-9a8e9b0870e1","type":"ColumnDataSource"},{"attributes":{"source":{"id":"b4042b17-15ac-45c7-82cb-837c6cdd2f72","type":"ColumnDataSource"}},"id":"d423b09a-8fd0-4e71-8e45-5534d51afcf5","type":"CDSView"},{"attributes":{"mantissas":[1,2,5],"max_interval":500.0,"num_minor_ticks":0},"id":"161aa317-b851-49d8-8ed0-dab7bd22c12b","type":"AdaptiveTicker"},{"attributes":{},"id":"8b2c60d3-83c3-4847-9809-ec0622b66527","type":"BasicTicker"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"9ab40367-de1c-4cd5-94b9-6e7c2bd688d1","type":"Line"},{"attributes":{"source":{"id":"31f1f93b-a4f1-454e-80dd-9a8e9b0870e1","type":"ColumnDataSource"}},"id":"e9d5e4a6-7a7c-4ff5-92e9-a4581970a32e","type":"CDSView"},{"attributes":{"data_source":{"id":"22e10456-6680-4143-a597-839041e0a966","type":"ColumnDataSource"},"glyph":{"id":"f0ae4550-ff53-4d8b-8277-89eef28eafac","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"bb605650-548f-4511-a7e3-d572a3f0f9cd","type":"Line"},"nonselection_glyph":{"id":"e6a5e832-14c9-492a-b71f-ca99d827b033","type":"Line"},"selection_glyph":null,"view":{"id":"4f183e99-525b-4c69-9886-006745785263","type":"CDSView"}},"id":"c594d7b4-2d81-4b27-9b76-04981c7918a4","type":"GlyphRenderer"},{"attributes":{"label":{"value":"GOOG"},"renderers":[{"id":"16a77c31-a262-4c11-9111-a24256ea7373","type":"GlyphRenderer"}]},"id":"b19f2131-8aa7-449d-bc75-2cccbedb1bbd","type":"LegendItem"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#2b83ba"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"6c55551c-c766-4efd-ba52-2f05b99b6018","type":"Line"},{"attributes":{"below":[{"id":"8e0c3267-9ae6-4198-b1a7-3f079debe8e8","type":"DatetimeAxis"}],"left":[{"id":"0d778720-d379-49ba-804f-9c42f08e96dd","type":"LinearAxis"}],"plot_height":250,"plot_width":800,"renderers":[{"id":"8e0c3267-9ae6-4198-b1a7-3f079debe8e8","type":"DatetimeAxis"},{"id":"8306b778-e8cc-4115-831b-9f3f943ab076","type":"Grid"},{"id":"0d778720-d379-49ba-804f-9c42f08e96dd","type":"LinearAxis"},{"id":"2e2cb76e-d700-4a62-9bcf-a51c7eecbdb5","type":"Grid"},{"id":"5ebc870d-2309-4fd9-a744-962a1f7cd0d5","type":"BoxAnnotation"},{"id":"98f52331-d758-41db-b847-a61d30c9e47e","type":"Legend"},{"id":"21b65bb5-da1b-4a94-acb2-ec3c5fd5bf42","type":"GlyphRenderer"},{"id":"c594d7b4-2d81-4b27-9b76-04981c7918a4","type":"GlyphRenderer"},{"id":"f03702d2-302c-4fa9-a53c-cc18f0a138ce","type":"GlyphRenderer"},{"id":"16a77c31-a262-4c11-9111-a24256ea7373","type":"GlyphRenderer"}],"title":{"id":"25dea14f-5b7a-46fa-9bb3-7087543d0ce4","type":"Title"},"toolbar":{"id":"7081a0ca-9fcb-403b-b31e-12f85d3ec955","type":"Toolbar"},"x_range":{"id":"576171b6-568e-4e58-a5e5-3491295ac88b","type":"DataRange1d"},"x_scale":{"id":"fe3594df-f432-4db7-8846-8b7fd611e25c","type":"LinearScale"},"y_range":{"id":"2591885b-5efc-4a7d-9416-524bb77f8c3f","type":"DataRange1d"},"y_scale":{"id":"0971d070-5da1-4cf8-94d4-5ce0f8b2d02b","type":"LinearScale"}},"id":"9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58","subtype":"Figure","type":"Plot"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#fdae61"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"71dc58dc-be45-49ea-b25b-af46650ed534","type":"Line"},{"attributes":{"data_source":{"id":"b4042b17-15ac-45c7-82cb-837c6cdd2f72","type":"ColumnDataSource"},"glyph":{"id":"6c55551c-c766-4efd-ba52-2f05b99b6018","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"0065881d-ca3e-4393-a7f8-b81268cb8121","type":"Line"},"nonselection_glyph":{"id":"90a6dd2c-9deb-4ef3-ae76-4b9e64feff0a","type":"Line"},"selection_glyph":null,"view":{"id":"d423b09a-8fd0-4e71-8e45-5534d51afcf5","type":"CDSView"}},"id":"21b65bb5-da1b-4a94-acb2-ec3c5fd5bf42","type":"GlyphRenderer"},{"attributes":{},"id":"b77cdc35-b83a-4d64-9c55-ccce9ace75ff","type":"ResetTool"},{"attributes":{},"id":"0971d070-5da1-4cf8-94d4-5ce0f8b2d02b","type":"LinearScale"},{"attributes":{"plot":{"id":"9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58","subtype":"Figure","type":"Plot"},"ticker":{"id":"711db360-7287-44d7-a67e-cbb667ed34f9","type":"DatetimeTicker"}},"id":"8306b778-e8cc-4115-831b-9f3f943ab076","type":"Grid"},{"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":"22e10456-6680-4143-a597-839041e0a966","type":"ColumnDataSource"},{"attributes":{"data_source":{"id":"31f1f93b-a4f1-454e-80dd-9a8e9b0870e1","type":"ColumnDataSource"},"glyph":{"id":"519c080a-6d79-4cc8-aa6b-913a022b9b36","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"06dfb66d-dfad-4f66-bee7-088d63feeb87","type":"Line"},"nonselection_glyph":{"id":"9ab40367-de1c-4cd5-94b9-6e7c2bd688d1","type":"Line"},"selection_glyph":null,"view":{"id":"e9d5e4a6-7a7c-4ff5-92e9-a4581970a32e","type":"CDSView"}},"id":"16a77c31-a262-4c11-9111-a24256ea7373","type":"GlyphRenderer"},{"attributes":{"num_minor_ticks":5,"tickers":[{"id":"161aa317-b851-49d8-8ed0-dab7bd22c12b","type":"AdaptiveTicker"},{"id":"a1df7901-aa1d-4766-8153-3baa30f4812b","type":"AdaptiveTicker"},{"id":"78cdbaf4-1a50-4720-9bbe-ee62f05a31ee","type":"AdaptiveTicker"},{"id":"2ef81256-5188-4a9a-b55e-d2a17fce2fe5","type":"DaysTicker"},{"id":"18412a02-e30d-4182-be5e-56b2f3e14c9b","type":"DaysTicker"},{"id":"db9bc9b5-c1fd-4aca-8ff1-699cb48296ee","type":"DaysTicker"},{"id":"c7afa3fc-82a4-46ae-aa81-87bc3e4ce0ee","type":"DaysTicker"},{"id":"ed1d7547-b200-42ec-960b-a247b3656b50","type":"MonthsTicker"},{"id":"9b4e78b4-1a94-4070-be86-a24142bf1870","type":"MonthsTicker"},{"id":"c8a8760f-2399-4d39-ad25-4e50553a331d","type":"MonthsTicker"},{"id":"fc00aa08-94b9-4e71-a789-6346e1766d82","type":"MonthsTicker"},{"id":"12f4680e-ea83-4a8d-9349-afd0ac448774","type":"YearsTicker"}]},"id":"711db360-7287-44d7-a67e-cbb667ed34f9","type":"DatetimeTicker"},{"attributes":{"days":[1,8,15,22]},"id":"db9bc9b5-c1fd-4aca-8ff1-699cb48296ee","type":"DaysTicker"},{"attributes":{"months":[0,4,8]},"id":"c8a8760f-2399-4d39-ad25-4e50553a331d","type":"MonthsTicker"},{"attributes":{"formatter":{"id":"a51cd843-4b0d-4c25-acb7-dd1361a5b6b5","type":"BasicTickFormatter"},"plot":{"id":"9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58","subtype":"Figure","type":"Plot"},"ticker":{"id":"8b2c60d3-83c3-4847-9809-ec0622b66527","type":"BasicTicker"}},"id":"0d778720-d379-49ba-804f-9c42f08e96dd","type":"LinearAxis"},{"attributes":{"label":{"value":"MSFT"},"renderers":[{"id":"f03702d2-302c-4fa9-a53c-cc18f0a138ce","type":"GlyphRenderer"}]},"id":"b6d723ef-7392-4509-9c2e-75be06b22718","type":"LegendItem"},{"attributes":{"callback":null},"id":"2591885b-5efc-4a7d-9416-524bb77f8c3f","type":"DataRange1d"},{"attributes":{},"id":"ad1ffbb9-0dab-4e28-80f2-31f84b2cf940","type":"SaveTool"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#fdae61"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"feff7988-edb3-422f-b6b6-6480f8bc2dca","type":"Line"},{"attributes":{"days":[1,4,7,10,13,16,19,22,25,28]},"id":"18412a02-e30d-4182-be5e-56b2f3e14c9b","type":"DaysTicker"}],"root_ids":["9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"49f20137-db6e-424b-9ffb-e648dc793982","elementid":"19dfc3b4-7f92-4ff2-b84f-00561be82075","modelid":"9a4bfd61-f527-4d6a-aae8-1f53b6a2ec58"}];
                
                    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);
})();
