Last active
February 13, 2019 22:16
-
-
Save danburger/4fbac0224cf736b2f2ed032977a17e7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Source: NOAA's National Centers for Environmental Information (NCEI) --> | |
<!-- https://www.ncdc.noaa.gov/ --> | |
<!-- you need to link to the base CSS for Bokeh --> | |
<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-1.0.4.min.css" type="text/css" /> | |
<!-- you need to link to the base Javascipt for Bokeh --> | |
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-1.0.4.min.js"></script> | |
<!-- now you may continue... --> | |
</head> | |
<body> | |
<!-- html string goes here --> | |
<div class="bk-root" id="12cedc87-caf9-4fa1-a0f4-9d3f4884df47" data-root-id="1002"></div> | |
<!-- script string goes here --> | |
<script type="text/javascript"> | |
(function() { | |
var fn = function() { | |
Bokeh.safely(function() { | |
(function(root) { | |
function embed_document(root) { | |
var docs_json = '{"f51a1b2f-cd11-4f15-b04b-833193b8d1aa":{"roots":{"references":[{"attributes":{},"id":"1022","type":"PanTool"},{"attributes":{"plot":{"id":"1002","subtype":"Figure","type":"Plot"},"ticker":{"id":"1013","type":"BasicTicker"}},"id":"1016","type":"Grid"},{"attributes":{},"id":"1043","type":"BasicTickFormatter"},{"attributes":{"line_color":"#1f77b4","line_width":2,"x":{"field":"x"},"y":{"field":"y"}},"id":"1038","type":"Line"},{"attributes":{"data_source":{"id":"1037","type":"ColumnDataSource"},"glyph":{"id":"1038","type":"Line"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1039","type":"Line"},"selection_glyph":null,"view":{"id":"1041","type":"CDSView"}},"id":"1040","type":"GlyphRenderer"},{"attributes":{},"id":"1018","type":"BasicTicker"},{"attributes":{"below":[{"id":"1012","type":"LinearAxis"}],"left":[{"id":"1017","type":"LinearAxis"}],"renderers":[{"id":"1012","type":"LinearAxis"},{"id":"1016","type":"Grid"},{"id":"1017","type":"LinearAxis"},{"id":"1021","type":"Grid"},{"id":"1030","type":"BoxAnnotation"},{"id":"1048","type":"Legend"},{"id":"1040","type":"GlyphRenderer"}],"title":{"id":"1001","type":"Title"},"toolbar":{"id":"1028","type":"Toolbar"},"x_range":{"id":"1004","type":"DataRange1d"},"x_scale":{"id":"1008","type":"LinearScale"},"y_range":{"id":"1006","type":"DataRange1d"},"y_scale":{"id":"1010","type":"LinearScale"}},"id":"1002","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"1023","type":"WheelZoomTool"},{"attributes":{"items":[{"id":"1049","type":"LegendItem"}],"plot":{"id":"1002","subtype":"Figure","type":"Plot"}},"id":"1048","type":"Legend"},{"attributes":{"label":{"value":"Temp"},"renderers":[{"id":"1040","type":"GlyphRenderer"}]},"id":"1049","type":"LegendItem"},{"attributes":{"source":{"id":"1037","type":"ColumnDataSource"}},"id":"1041","type":"CDSView"},{"attributes":{"axis_label":"Temp (deg. F)","formatter":{"id":"1045","type":"BasicTickFormatter"},"plot":{"id":"1002","subtype":"Figure","type":"Plot"},"ticker":{"id":"1018","type":"BasicTicker"}},"id":"1017","type":"LinearAxis"},{"attributes":{},"id":"1013","type":"BasicTicker"},{"attributes":{},"id":"1045","type":"BasicTickFormatter"},{"attributes":{"axis_label":"Day","formatter":{"id":"1043","type":"BasicTickFormatter"},"plot":{"id":"1002","subtype":"Figure","type":"Plot"},"ticker":{"id":"1013","type":"BasicTicker"}},"id":"1012","type":"LinearAxis"},{"attributes":{},"id":"1026","type":"ResetTool"},{"attributes":{},"id":"1010","type":"LinearScale"},{"attributes":{"line_alpha":0.1,"line_color":"#1f77b4","line_width":2,"x":{"field":"x"},"y":{"field":"y"}},"id":"1039","type":"Line"},{"attributes":{"callback":null,"data":{"x":[0,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,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364],"y":[23,27,37,24,31,30,46,43,49,66,69,62,26,29,48,26,22,37,49,65,69,63,51,51,59,62,61,59,51,40,59,54,32,51,52,39,43,44,47,66,58,63,39,60,64,77,70,48,61,76,80,74,63,82,79,57,65,69,59,63,57,58,65,57,66,43,43,62,67,54,49,52,50,72,73,80,62,69,56,51,57,60,64,51,60,72,72,63,59,70,68,62,83,53,58,59,45,50,62,63,68,82,82,72,63,44,80,75,54,68,76,61,70,67,71,61,75,73,68,80,84,86,87,78,71,83,83,83,88,89,89,90,91,92,93,87,83,84,88,92,87,87,89,90,91,84,90,85,81,88,90,86,92,87,84,85,90,91,93,94,88,92,91,85,93,94,96,96,93,92,87,86,85,85,92,93,94,93,84,91,94,94,93,95,99,98,91,87,88,92,91,96,94,94,96,83,93,94,92,94,94,91,81,87,87,92,93,92,89,92,94,88,85,88,92,95,92,96,95,90,88,84,93,91,91,92,95,87,89,88,89,86,82,85,83,86,91,93,94,95,94,92,91,90,95,94,95,87,91,93,92,81,69,72,87,93,94,94,86,88,95,96,97,91,83,75,76,84,76,68,78,81,88,83,83,89,91,92,90,89,88,85,85,74,67,61,69,69,55,70,65,76,68,58,65,72,66,59,57,53,77,67,77,77,71,56,64,64,72,71,57,58,52,41,53,49,44,37,37,58,65,65,60,47,54,61,54,65,63,48,38,40,61,66,63,71,48,42,42,47,44,40,39,45,50,55,63,56,56,59,61,54,60,49,47,52,45,49,53,56,62,63,46,60,68]},"selected":{"id":"1056","type":"Selection"},"selection_policy":{"id":"1057","type":"UnionRenderers"}},"id":"1037","type":"ColumnDataSource"},{"attributes":{},"id":"1056","type":"Selection"},{"attributes":{"callback":null},"id":"1006","type":"DataRange1d"},{"attributes":{"callback":null},"id":"1004","type":"DataRange1d"},{"attributes":{},"id":"1027","type":"HelpTool"},{"attributes":{},"id":"1008","type":"LinearScale"},{"attributes":{},"id":"1025","type":"SaveTool"},{"attributes":{},"id":"1057","type":"UnionRenderers"},{"attributes":{"plot":null,"text":"BNA High Temperatures"},"id":"1001","type":"Title"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1022","type":"PanTool"},{"id":"1023","type":"WheelZoomTool"},{"id":"1024","type":"BoxZoomTool"},{"id":"1025","type":"SaveTool"},{"id":"1026","type":"ResetTool"},{"id":"1027","type":"HelpTool"}]},"id":"1028","type":"Toolbar"},{"attributes":{"dimension":1,"plot":{"id":"1002","subtype":"Figure","type":"Plot"},"ticker":{"id":"1018","type":"BasicTicker"}},"id":"1021","type":"Grid"},{"attributes":{"overlay":{"id":"1030","type":"BoxAnnotation"}},"id":"1024","type":"BoxZoomTool"},{"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":"1030","type":"BoxAnnotation"}],"root_ids":["1002"]},"title":"Bokeh Application","version":"1.0.4"}}'; | |
var render_items = [{"docid":"f51a1b2f-cd11-4f15-b04b-833193b8d1aa","roots":{"1002":"12cedc87-caf9-4fa1-a0f4-9d3f4884df47"}}]; | |
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 run BokehJS code because BokehJS library is missing"); | |
clearInterval(timer); | |
} | |
}, 10, root) | |
} | |
})(window); | |
}); | |
}; | |
if (document.readyState != "loading") fn(); | |
else document.addEventListener("DOMContentLoaded", fn); | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment