(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("5242a377-9253-4788-a69a-c2e4a42349b5");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '5242a377-9253-4788-a69a-c2e4a42349b5' 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 = {"79f1d1be-44b5-4b49-b238-1cff2863892d":{"roots":{"references":[{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"4d54abbf-c3ae-49ee-a657-e8421d880cbd","type":"Line"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#2b83ba"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"35a09a8b-d1bd-4141-9ef1-f588909372f2","type":"Line"},{"attributes":{"months":[0,4,8]},"id":"82258208-b8e7-44e8-853e-3d169f8a4797","type":"MonthsTicker"},{"attributes":{},"id":"872e076d-3680-4ec8-8d99-c380cc193e21","type":"WheelZoomTool"},{"attributes":{},"id":"c52081ca-9de5-48c1-a65d-048fe8fbdcc5","type":"LinearScale"},{"attributes":{"label":{"value":"IBM"},"renderers":[{"id":"be7f5fa1-34ad-4b8e-9a80-b4db48c868d1","type":"GlyphRenderer"}]},"id":"3a9e3028-5c17-4b45-b8d6-b5b23c35f956","type":"LegendItem"},{"attributes":{},"id":"05a0d882-b0fd-46d5-9e48-b698f5a56baf","type":"DatetimeTickFormatter"},{"attributes":{"days":[1,8,15,22]},"id":"f27ec0f8-33a5-45c1-9ce3-80d7e44e645e","type":"DaysTicker"},{"attributes":{"source":{"id":"b327e15a-96db-4c98-977b-fd3385684242","type":"ColumnDataSource"}},"id":"bf716e7d-b54a-41ad-bdad-4411dc2fa81a","type":"CDSView"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"592435aa-35e6-460f-b5eb-6e7135d9582e","type":"Line"},{"attributes":{"formatter":{"id":"05a0d882-b0fd-46d5-9e48-b698f5a56baf","type":"DatetimeTickFormatter"},"plot":{"id":"0f842a5b-2320-4c54-b73e-5fc65f91275e","subtype":"Figure","type":"Plot"},"ticker":{"id":"ed71903d-e8ba-43ba-bfca-2b368d7332e4","type":"DatetimeTicker"}},"id":"0dde3521-146b-4c4a-a149-6a24f59616a5","type":"DatetimeAxis"},{"attributes":{},"id":"4cce2072-01bb-4af5-8989-c8f83ef96b15","type":"PanTool"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#abdda4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"4480dcd7-9353-4d59-bc91-0ad2bb4cbfc0","type":"Line"},{"attributes":{"days":[1,15]},"id":"3ef9cff6-4376-42c8-9500-c6888e8c1242","type":"DaysTicker"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"e9e65675-4fe7-4e69-a739-75d2818c219d","type":"Line"},{"attributes":{"data_source":{"id":"b327e15a-96db-4c98-977b-fd3385684242","type":"ColumnDataSource"},"glyph":{"id":"7041beb1-5613-43f3-841d-b142a8a878fe","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"76ed98e4-bde4-4a4b-97c8-21d3a9f55d98","type":"Line"},"nonselection_glyph":{"id":"4d54abbf-c3ae-49ee-a657-e8421d880cbd","type":"Line"},"selection_glyph":null,"view":{"id":"bf716e7d-b54a-41ad-bdad-4411dc2fa81a","type":"CDSView"}},"id":"15e614b7-df18-4051-86a5-55ae638e8eb0","type":"GlyphRenderer"},{"attributes":{},"id":"cc7e3390-1cf2-402c-82d7-cc517681a7ad","type":"BasicTicker"},{"attributes":{"callback":null},"id":"c4a16358-34a7-473c-915b-8c70d26d834b","type":"DataRange1d"},{"attributes":{"data_source":{"id":"bf72bd3e-9229-42f7-bf4b-25305276005b","type":"ColumnDataSource"},"glyph":{"id":"6951bc5b-bdd0-449e-96dc-bb387a5863e0","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"4480dcd7-9353-4d59-bc91-0ad2bb4cbfc0","type":"Line"},"nonselection_glyph":{"id":"592435aa-35e6-460f-b5eb-6e7135d9582e","type":"Line"},"selection_glyph":null,"view":{"id":"54292bdd-cbe6-4a4c-8d58-c570949b4a34","type":"CDSView"}},"id":"be7f5fa1-34ad-4b8e-9a80-b4db48c868d1","type":"GlyphRenderer"},{"attributes":{"data_source":{"id":"72fb4f64-10f8-4c2d-8dc7-ec3721b624b9","type":"ColumnDataSource"},"glyph":{"id":"35a09a8b-d1bd-4141-9ef1-f588909372f2","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"cd6d25a6-4ded-4f86-afe2-685add8583ec","type":"Line"},"nonselection_glyph":{"id":"112220f1-ce1f-46ad-b343-165b43c53918","type":"Line"},"selection_glyph":null,"view":{"id":"3f27cef2-46b9-4a8c-9d5b-4b102e5cf9f7","type":"CDSView"}},"id":"568c4ac3-bec0-4e9e-b325-545f07985df3","type":"GlyphRenderer"},{"attributes":{"plot":null,"text":"Click on legend entries to mute the corresponding lines"},"id":"b2f1a7c1-8d37-4fd8-b7af-9017cf5365c8","type":"Title"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#d7191c"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"76ed98e4-bde4-4a4b-97c8-21d3a9f55d98","type":"Line"},{"attributes":{"months":[0,1,2,3,4,5,6,7,8,9,10,11]},"id":"598e03f1-5a02-4e0e-8d6f-65d9a5ea1def","type":"MonthsTicker"},{"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":"5994d3aa-95ca-40b5-932e-09445cb4e6e5","type":"BoxAnnotation"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#abdda4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"6951bc5b-bdd0-449e-96dc-bb387a5863e0","type":"Line"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#fdae61"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"c7a7e202-1433-4e21-8c66-9f2853d64d09","type":"Line"},{"attributes":{"dimension":1,"plot":{"id":"0f842a5b-2320-4c54-b73e-5fc65f91275e","subtype":"Figure","type":"Plot"},"ticker":{"id":"cc7e3390-1cf2-402c-82d7-cc517681a7ad","type":"BasicTicker"}},"id":"82c2be66-7280-4ad3-8445-87813c1ad489","type":"Grid"},{"attributes":{"callback":null},"id":"c058ab18-99e2-495f-b04a-c6cded29d7df","type":"DataRange1d"},{"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":"bf72bd3e-9229-42f7-bf4b-25305276005b","type":"ColumnDataSource"},{"attributes":{"source":{"id":"72fb4f64-10f8-4c2d-8dc7-ec3721b624b9","type":"ColumnDataSource"}},"id":"3f27cef2-46b9-4a8c-9d5b-4b102e5cf9f7","type":"CDSView"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"112220f1-ce1f-46ad-b343-165b43c53918","type":"Line"},{"attributes":{"mantissas":[1,2,5],"max_interval":500.0,"num_minor_ticks":0},"id":"6cd4311c-ef9e-4653-a063-f14f809b3188","type":"AdaptiveTicker"},{"attributes":{"source":{"id":"bf72bd3e-9229-42f7-bf4b-25305276005b","type":"ColumnDataSource"}},"id":"54292bdd-cbe6-4a4c-8d58-c570949b4a34","type":"CDSView"},{"attributes":{"data_source":{"id":"e9cb70de-a5ff-45ff-9002-9b89f71e558b","type":"ColumnDataSource"},"glyph":{"id":"cf60f1d2-3f9b-40a3-a2ca-890739903a2e","type":"Line"},"hover_glyph":null,"muted_glyph":{"id":"c7a7e202-1433-4e21-8c66-9f2853d64d09","type":"Line"},"nonselection_glyph":{"id":"e9e65675-4fe7-4e69-a739-75d2818c219d","type":"Line"},"selection_glyph":null,"view":{"id":"fdf71df4-de02-438a-a82d-66784a451df2","type":"CDSView"}},"id":"4b2ad549-e6a9-49c3-9028-75c47b60d49f","type":"GlyphRenderer"},{"attributes":{"overlay":{"id":"5994d3aa-95ca-40b5-932e-09445cb4e6e5","type":"BoxAnnotation"}},"id":"6ca88fb3-ff8e-41e4-82f4-90105d717106","type":"BoxZoomTool"},{"attributes":{"line_alpha":{"value":0.2},"line_color":{"value":"#2b83ba"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"cd6d25a6-4ded-4f86-afe2-685add8583ec","type":"Line"},{"attributes":{},"id":"b8759b8e-8c2b-41a1-b0e3-8f5c1c849779","type":"ResetTool"},{"attributes":{"source":{"id":"e9cb70de-a5ff-45ff-9002-9b89f71e558b","type":"ColumnDataSource"}},"id":"fdf71df4-de02-438a-a82d-66784a451df2","type":"CDSView"},{"attributes":{"label":{"value":"AAPL"},"renderers":[{"id":"568c4ac3-bec0-4e9e-b325-545f07985df3","type":"GlyphRenderer"}]},"id":"d299b032-3d31-4184-8131-51aedf5879cb","type":"LegendItem"},{"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":"b327e15a-96db-4c98-977b-fd3385684242","type":"ColumnDataSource"},{"attributes":{},"id":"119f08dd-ecca-4816-974e-aa86768211b8","type":"BasicTickFormatter"},{"attributes":{"days":[1,4,7,10,13,16,19,22,25,28]},"id":"e5e43bc0-cefc-4dd5-a9de-3ae8e0678a77","type":"DaysTicker"},{"attributes":{"plot":{"id":"0f842a5b-2320-4c54-b73e-5fc65f91275e","subtype":"Figure","type":"Plot"},"ticker":{"id":"ed71903d-e8ba-43ba-bfca-2b368d7332e4","type":"DatetimeTicker"}},"id":"ae7f0786-2409-4444-9b50-4734ed80139f","type":"Grid"},{"attributes":{"below":[{"id":"0dde3521-146b-4c4a-a149-6a24f59616a5","type":"DatetimeAxis"}],"left":[{"id":"e649c69b-61b7-47ac-af14-f57391d5651d","type":"LinearAxis"}],"plot_height":250,"plot_width":800,"renderers":[{"id":"0dde3521-146b-4c4a-a149-6a24f59616a5","type":"DatetimeAxis"},{"id":"ae7f0786-2409-4444-9b50-4734ed80139f","type":"Grid"},{"id":"e649c69b-61b7-47ac-af14-f57391d5651d","type":"LinearAxis"},{"id":"82c2be66-7280-4ad3-8445-87813c1ad489","type":"Grid"},{"id":"5994d3aa-95ca-40b5-932e-09445cb4e6e5","type":"BoxAnnotation"},{"id":"a8c9ac53-ede7-44a7-8429-df46a336247d","type":"Legend"},{"id":"568c4ac3-bec0-4e9e-b325-545f07985df3","type":"GlyphRenderer"},{"id":"be7f5fa1-34ad-4b8e-9a80-b4db48c868d1","type":"GlyphRenderer"},{"id":"4b2ad549-e6a9-49c3-9028-75c47b60d49f","type":"GlyphRenderer"},{"id":"15e614b7-df18-4051-86a5-55ae638e8eb0","type":"GlyphRenderer"}],"title":{"id":"b2f1a7c1-8d37-4fd8-b7af-9017cf5365c8","type":"Title"},"toolbar":{"id":"e72f7585-ffff-4ded-94ff-9c6c7f7615dd","type":"Toolbar"},"x_range":{"id":"c058ab18-99e2-495f-b04a-c6cded29d7df","type":"DataRange1d"},"x_scale":{"id":"c52081ca-9de5-48c1-a65d-048fe8fbdcc5","type":"LinearScale"},"y_range":{"id":"c4a16358-34a7-473c-915b-8c70d26d834b","type":"DataRange1d"},"y_scale":{"id":"1e971389-06f4-44cb-b790-2056f8570ea0","type":"LinearScale"}},"id":"0f842a5b-2320-4c54-b73e-5fc65f91275e","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"ffa85989-8095-49bd-9d19-77b937fe1809","type":"YearsTicker"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#fdae61"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"cf60f1d2-3f9b-40a3-a2ca-890739903a2e","type":"Line"},{"attributes":{"line_alpha":{"value":0.8},"line_color":{"value":"#d7191c"},"line_width":{"value":2},"x":{"field":"x"},"y":{"field":"y"}},"id":"7041beb1-5613-43f3-841d-b142a8a878fe","type":"Line"},{"attributes":{"formatter":{"id":"119f08dd-ecca-4816-974e-aa86768211b8","type":"BasicTickFormatter"},"plot":{"id":"0f842a5b-2320-4c54-b73e-5fc65f91275e","subtype":"Figure","type":"Plot"},"ticker":{"id":"cc7e3390-1cf2-402c-82d7-cc517681a7ad","type":"BasicTicker"}},"id":"e649c69b-61b7-47ac-af14-f57391d5651d","type":"LinearAxis"},{"attributes":{"click_policy":"mute","items":[{"id":"d299b032-3d31-4184-8131-51aedf5879cb","type":"LegendItem"},{"id":"3a9e3028-5c17-4b45-b8d6-b5b23c35f956","type":"LegendItem"},{"id":"0aec7c83-b9a8-4b32-8f64-26bf889f247a","type":"LegendItem"},{"id":"57060cbc-938c-463b-a1ee-e26f5a86539f","type":"LegendItem"}],"location":"top_left","plot":{"id":"0f842a5b-2320-4c54-b73e-5fc65f91275e","subtype":"Figure","type":"Plot"}},"id":"a8c9ac53-ede7-44a7-8429-df46a336247d","type":"Legend"},{"attributes":{"label":{"value":"GOOG"},"renderers":[{"id":"15e614b7-df18-4051-86a5-55ae638e8eb0","type":"GlyphRenderer"}]},"id":"57060cbc-938c-463b-a1ee-e26f5a86539f","type":"LegendItem"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"4cce2072-01bb-4af5-8989-c8f83ef96b15","type":"PanTool"},{"id":"872e076d-3680-4ec8-8d99-c380cc193e21","type":"WheelZoomTool"},{"id":"6ca88fb3-ff8e-41e4-82f4-90105d717106","type":"BoxZoomTool"},{"id":"0a61b6bd-d0c2-46d2-b1fd-3e059ad63926","type":"SaveTool"},{"id":"b8759b8e-8c2b-41a1-b0e3-8f5c1c849779","type":"ResetTool"},{"id":"4ff0cf13-c535-4f34-b577-5a0f1e5a27da","type":"HelpTool"}]},"id":"e72f7585-ffff-4ded-94ff-9c6c7f7615dd","type":"Toolbar"},{"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":"e9cb70de-a5ff-45ff-9002-9b89f71e558b","type":"ColumnDataSource"},{"attributes":{"base":24,"mantissas":[1,2,4,6,8,12],"max_interval":43200000.0,"min_interval":3600000.0,"num_minor_ticks":0},"id":"c80dd299-49a2-48dc-9254-26647e1d67e0","type":"AdaptiveTicker"},{"attributes":{},"id":"0a61b6bd-d0c2-46d2-b1fd-3e059ad63926","type":"SaveTool"},{"attributes":{"months":[0,6]},"id":"35f7e565-4dbc-4ff2-99e4-6a6fa92487e5","type":"MonthsTicker"},{"attributes":{},"id":"1e971389-06f4-44cb-b790-2056f8570ea0","type":"LinearScale"},{"attributes":{"months":[0,2,4,6,8,10]},"id":"8b695978-db50-4c8d-996a-6b8c0f002194","type":"MonthsTicker"},{"attributes":{},"id":"4ff0cf13-c535-4f34-b577-5a0f1e5a27da","type":"HelpTool"},{"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":"0c46d4c0-9198-47ab-a0ef-0e5c07d2229f","type":"DaysTicker"},{"attributes":{"base":60,"mantissas":[1,2,5,10,15,20,30],"max_interval":1800000.0,"min_interval":1000.0,"num_minor_ticks":0},"id":"e015caf5-4323-4ed9-a9ad-212cfcbfc22f","type":"AdaptiveTicker"},{"attributes":{"num_minor_ticks":5,"tickers":[{"id":"6cd4311c-ef9e-4653-a063-f14f809b3188","type":"AdaptiveTicker"},{"id":"e015caf5-4323-4ed9-a9ad-212cfcbfc22f","type":"AdaptiveTicker"},{"id":"c80dd299-49a2-48dc-9254-26647e1d67e0","type":"AdaptiveTicker"},{"id":"0c46d4c0-9198-47ab-a0ef-0e5c07d2229f","type":"DaysTicker"},{"id":"e5e43bc0-cefc-4dd5-a9de-3ae8e0678a77","type":"DaysTicker"},{"id":"f27ec0f8-33a5-45c1-9ce3-80d7e44e645e","type":"DaysTicker"},{"id":"3ef9cff6-4376-42c8-9500-c6888e8c1242","type":"DaysTicker"},{"id":"598e03f1-5a02-4e0e-8d6f-65d9a5ea1def","type":"MonthsTicker"},{"id":"8b695978-db50-4c8d-996a-6b8c0f002194","type":"MonthsTicker"},{"id":"82258208-b8e7-44e8-853e-3d169f8a4797","type":"MonthsTicker"},{"id":"35f7e565-4dbc-4ff2-99e4-6a6fa92487e5","type":"MonthsTicker"},{"id":"ffa85989-8095-49bd-9d19-77b937fe1809","type":"YearsTicker"}]},"id":"ed71903d-e8ba-43ba-bfca-2b368d7332e4","type":"DatetimeTicker"},{"attributes":{"label":{"value":"MSFT"},"renderers":[{"id":"4b2ad549-e6a9-49c3-9028-75c47b60d49f","type":"GlyphRenderer"}]},"id":"0aec7c83-b9a8-4b32-8f64-26bf889f247a","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":"72fb4f64-10f8-4c2d-8dc7-ec3721b624b9","type":"ColumnDataSource"}],"root_ids":["0f842a5b-2320-4c54-b73e-5fc65f91275e"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"79f1d1be-44b5-4b49-b238-1cff2863892d","elementid":"5242a377-9253-4788-a69a-c2e4a42349b5","modelid":"0f842a5b-2320-4c54-b73e-5fc65f91275e"}];
                
                    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);
})();
