Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2016 15:45
Show Gist options
  • Save anonymous/1eab3bea584bb4145cecbbdb4cea8a38 to your computer and use it in GitHub Desktop.
Save anonymous/1eab3bea584bb4145cecbbdb4cea8a38 to your computer and use it in GitHub Desktop.
Bokeh dataframe hover example
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"run_control": {
"read_only": false
},
"trusted": true,
"collapsed": false
},
"cell_type": "code",
"source": "%matplotlib inline\nimport numpy as np\nimport pandas as pd\nfrom bokeh.charts import Line, output_notebook, show\nfrom bokeh.models import HoverTool\n\ndf = pd.DataFrame(np.random.rand(10, 5), columns=['A', 'B', 'C', 'D', 'E'])\n\n# Create custom hover tool output\nhover = HoverTool(\n tooltips=[\n (\"index\", \"$index\"),\n (\"(x,y)\", \"($x, $y)\")\n ]\n )\n\nline = Line(df, title=\"Bokeh Line Example\", legend=\"top_left\", ylabel='Languages', \n plot_width=600, plot_height=500, tools=[hover, 'resize, reset, crosshair'])\n\noutput_notebook()\nshow(line)",
"execution_count": 1,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/html": "\n <div class=\"bk-banner\">\n <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n <span id=\"54f09e37-1feb-432d-894f-69c21fc6d4a2\">Loading BokehJS ...</span>\n </div>"
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"application/javascript": "\n(function(global) {\n function now() {\n return new Date();\n }\n\n if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n window._bokeh_onload_callbacks = [];\n }\n\n function run_callbacks() {\n window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n delete window._bokeh_onload_callbacks\n console.info(\"Bokeh: all callbacks have finished\");\n }\n\n function load_libs(js_urls, callback) {\n window._bokeh_onload_callbacks.push(callback);\n if (window._bokeh_is_loading > 0) {\n console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls == null || js_urls.length === 0) {\n run_callbacks();\n return null;\n }\n console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n window._bokeh_is_loading = js_urls.length;\n for (var i = 0; i < js_urls.length; i++) {\n var url = js_urls[i];\n var s = document.createElement('script');\n s.src = url;\n s.async = false;\n s.onreadystatechange = s.onload = function() {\n window._bokeh_is_loading--;\n if (window._bokeh_is_loading === 0) {\n console.log(\"Bokeh: all BokehJS libraries loaded\");\n run_callbacks()\n }\n };\n s.onerror = function() {\n console.warn(\"failed to load library \" + url);\n };\n console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.getElementsByTagName(\"head\")[0].appendChild(s);\n }\n };\n\n var js_urls = ['https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-compiler-0.11.1.min.js'];\n\n var inline_js = [\n function(Bokeh) {\n Bokeh.set_log_level(\"info\");\n },\n \n function(Bokeh) {\n Bokeh.$(\"#54f09e37-1feb-432d-894f-69c21fc6d4a2\").text(\"BokehJS successfully loaded\");\n },\n function(Bokeh) {\n console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n }\n ];\n\n function run_inline_js() {\n for (var i = 0; i < inline_js.length; i++) {\n inline_js[i](window.Bokeh);\n }\n }\n\n if (window._bokeh_is_loading === 0) {\n console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n run_inline_js();\n } else {\n load_libs(js_urls, function() {\n console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n run_inline_js();\n });\n }\n}(this));"
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": "\n\n <div class=\"plotdiv\" id=\"da76174b-db4d-426e-a0eb-a8bc22b11689\"></div>\n<script type=\"text/javascript\">\n \n (function(global) {\n function now() {\n return new Date();\n }\n \n if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n window._bokeh_onload_callbacks = [];\n }\n \n function run_callbacks() {\n window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n delete window._bokeh_onload_callbacks\n console.info(\"Bokeh: all callbacks have finished\");\n }\n \n function load_libs(js_urls, callback) {\n window._bokeh_onload_callbacks.push(callback);\n if (window._bokeh_is_loading > 0) {\n console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls == null || js_urls.length === 0) {\n run_callbacks();\n return null;\n }\n console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n window._bokeh_is_loading = js_urls.length;\n for (var i = 0; i < js_urls.length; i++) {\n var url = js_urls[i];\n var s = document.createElement('script');\n s.src = url;\n s.async = false;\n s.onreadystatechange = s.onload = function() {\n window._bokeh_is_loading--;\n if (window._bokeh_is_loading === 0) {\n console.log(\"Bokeh: all BokehJS libraries loaded\");\n run_callbacks()\n }\n };\n s.onerror = function() {\n console.warn(\"failed to load library \" + url);\n };\n console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.getElementsByTagName(\"head\")[0].appendChild(s);\n }\n };var element = document.getElementById(\"da76174b-db4d-426e-a0eb-a8bc22b11689\");\n if (element == null) {\n console.log(\"Bokeh: ERROR: autoload.js configured with elementid 'da76174b-db4d-426e-a0eb-a8bc22b11689' but no matching script tag was found. \")\n return false;\n }\n \n var js_urls = [];\n \n var inline_js = [\n function(Bokeh) {\n Bokeh.$(function() {\n var docs_json = {\"9cd59f8e-175a-450d-b0f4-c54cb2c24086\":{\"roots\":{\"references\":[{\"attributes\":{},\"id\":\"3d82f934-5bbc-4044-8784-c07dc79fdfad\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"line_color\":{\"value\":\"#5ab738\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x_values\"},\"y\":{\"field\":\"y_values\"}},\"id\":\"6eb83234-86fa-4c6c-9554-33b22afada3f\",\"type\":\"Line\"},{\"attributes\":{\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"e0bdc52d-fee3-45f8-8aae-0f42ee13b03a\",\"type\":\"BasicTicker\"}},\"id\":\"8262f0d5-c5d0-4ddd-9a02-e274078b17f9\",\"type\":\"Grid\"},{\"attributes\":{\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"e80d7804-18fe-4785-8eb7-657e2d5dd60b\",\"type\":\"CrosshairTool\"},{\"attributes\":{\"callback\":null,\"end\":9.9,\"start\":-0.9},\"id\":\"051dad64-dc7c-4aa3-8d8e-cdfc84886ea7\",\"type\":\"Range1d\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y_values\",\"x_values\"],\"data\":{\"chart_index\":[{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"},{\"series\":\"C\"}],\"series\":[\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\"],\"x_values\":[0,1,2,3,4,5,6,7,8,9],\"y_values\":[0.5119955335487538,0.3133866001537021,0.6732486295503027,0.2504742756063856,0.3679576076496319,0.526107004434271,0.021712623424837152,0.5719868190552032,0.0964990671655449,0.3332702740934721]}},\"id\":\"1ef309dc-6faf-48c1-9586-b4dabe9801a0\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"e0bdc52d-fee3-45f8-8aae-0f42ee13b03a\",\"type\":\"BasicTicker\"},{\"attributes\":{\"callback\":null,\"end\":1.0472373812742046,\"start\":-0.07151690001601443},\"id\":\"886144d2-3830-4135-97d0-6b8384d914c6\",\"type\":\"Range1d\"},{\"attributes\":{\"line_color\":{\"value\":\"#407ee7\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x_values\"},\"y\":{\"field\":\"y_values\"}},\"id\":\"ed2e05d4-bb50-4048-9e68-9eb7ab84596a\",\"type\":\"Line\"},{\"attributes\":{\"line_color\":{\"value\":\"#f22c40\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x_values\"},\"y\":{\"field\":\"y_values\"}},\"id\":\"c6349590-1859-422a-9e63-b3f0376840e2\",\"type\":\"Line\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y_values\",\"x_values\"],\"data\":{\"chart_index\":[{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"},{\"series\":\"D\"}],\"series\":[\"D\",\"D\",\"D\",\"D\",\"D\",\"D\",\"D\",\"D\",\"D\",\"D\"],\"x_values\":[0,1,2,3,4,5,6,7,8,9],\"y_values\":[0.9393143920680247,0.8980848811876727,0.9346677853487289,0.954007857833353,0.45361485097326604,0.22501720463230424,0.5382163940377612,0.8883445851056716,0.7656393065176672,0.799464893152601]}},\"id\":\"e1bbf6e9-e258-480b-80d0-b5b6552f22f6\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"line_color\":{\"value\":\"#df5320\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x_values\"},\"y\":{\"field\":\"y_values\"}},\"id\":\"07cb53d8-007b-450c-be5a-3de5fd601c20\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"0d7e2c1a-299f-4ca8-8c78-e702edc24d68\",\"type\":\"BasicTicker\"},{\"attributes\":{\"axis_label\":\"index\",\"formatter\":{\"id\":\"bc7a0bb8-7db7-41f4-9ea8-854c1a9468ed\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"e0bdc52d-fee3-45f8-8aae-0f42ee13b03a\",\"type\":\"BasicTicker\"}},\"id\":\"a2a83694-c209-4ced-ab03-45c885544378\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data_source\":{\"id\":\"bfbdc720-b650-43b4-978b-5406ae4586c7\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"6eb83234-86fa-4c6c-9554-33b22afada3f\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"7354a938-a409-4512-803d-0c4525db225a\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"legends\":[[\"A\",[{\"id\":\"32f9d7dd-df39-47a3-836e-41ce790157c6\",\"type\":\"GlyphRenderer\"}]],[\"B\",[{\"id\":\"7354a938-a409-4512-803d-0c4525db225a\",\"type\":\"GlyphRenderer\"}]],[\"C\",[{\"id\":\"98bc8d8b-6bed-4881-94fb-a7d3934479c3\",\"type\":\"GlyphRenderer\"}]],[\"D\",[{\"id\":\"80634c73-21da-44b0-bdfc-5be0afef6a45\",\"type\":\"GlyphRenderer\"}]],[\"E\",[{\"id\":\"0e06490e-877f-4884-8211-201e510592d9\",\"type\":\"GlyphRenderer\"}]]],\"location\":\"top_left\",\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"4b1c12c8-eab7-4c07-9476-e2ba353a8c91\",\"type\":\"Legend\"},{\"attributes\":{\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"a697519a-4d4f-4ea5-a6de-735e54887a2a\",\"type\":\"ResizeTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y_values\",\"x_values\"],\"data\":{\"chart_index\":[{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"},{\"series\":\"A\"}],\"series\":[\"A\",\"A\",\"A\",\"A\",\"A\",\"A\",\"A\",\"A\",\"A\",\"A\"],\"x_values\":[0,1,2,3,4,5,6,7,8,9],\"y_values\":[0.8288186750176673,0.7774124409767895,0.1487409681591283,0.3802579294519959,0.2383860021711557,0.8006779168967326,0.4108973967412525,0.1143728734044247,0.5875761756417143,0.8519333042496883]}},\"id\":\"ebe6c336-749f-4935-823a-7fd0189a4e6c\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"below\":[{\"id\":\"a2a83694-c209-4ced-ab03-45c885544378\",\"type\":\"LinearAxis\"}],\"left\":[{\"id\":\"95582a99-f3c0-493e-aafc-102e7881bee3\",\"type\":\"LinearAxis\"}],\"legend\":\"top_left\",\"plot_height\":500,\"renderers\":[{\"id\":\"32f9d7dd-df39-47a3-836e-41ce790157c6\",\"type\":\"GlyphRenderer\"},{\"id\":\"7354a938-a409-4512-803d-0c4525db225a\",\"type\":\"GlyphRenderer\"},{\"id\":\"98bc8d8b-6bed-4881-94fb-a7d3934479c3\",\"type\":\"GlyphRenderer\"},{\"id\":\"80634c73-21da-44b0-bdfc-5be0afef6a45\",\"type\":\"GlyphRenderer\"},{\"id\":\"0e06490e-877f-4884-8211-201e510592d9\",\"type\":\"GlyphRenderer\"},{\"id\":\"4b1c12c8-eab7-4c07-9476-e2ba353a8c91\",\"type\":\"Legend\"},{\"id\":\"a2a83694-c209-4ced-ab03-45c885544378\",\"type\":\"LinearAxis\"},{\"id\":\"95582a99-f3c0-493e-aafc-102e7881bee3\",\"type\":\"LinearAxis\"},{\"id\":\"8262f0d5-c5d0-4ddd-9a02-e274078b17f9\",\"type\":\"Grid\"},{\"id\":\"74fabac9-6f60-47e4-881f-5bba425f2bb3\",\"type\":\"Grid\"}],\"title\":\"Bokeh Line Example\",\"title_text_font_size\":{\"value\":\"14pt\"},\"tool_events\":{\"id\":\"5ef143df-4207-483c-a87f-90afcafcfdaa\",\"type\":\"ToolEvents\"},\"tools\":[{\"id\":\"ca1e5ec5-c6b6-41d1-aba0-047fcca033c6\",\"type\":\"HoverTool\"},{\"id\":\"a697519a-4d4f-4ea5-a6de-735e54887a2a\",\"type\":\"ResizeTool\"},{\"id\":\"2b747354-d7be-4dbd-95ce-92b20dae01bd\",\"type\":\"ResetTool\"},{\"id\":\"e80d7804-18fe-4785-8eb7-657e2d5dd60b\",\"type\":\"CrosshairTool\"}],\"x_mapper_type\":\"auto\",\"x_range\":{\"id\":\"051dad64-dc7c-4aa3-8d8e-cdfc84886ea7\",\"type\":\"Range1d\"},\"xscale\":\"auto\",\"y_mapper_type\":\"auto\",\"y_range\":{\"id\":\"886144d2-3830-4135-97d0-6b8384d914c6\",\"type\":\"Range1d\"},\"yscale\":\"auto\"},\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"},{\"attributes\":{\"line_color\":{\"value\":\"#00ad9c\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x_values\"},\"y\":{\"field\":\"y_values\"}},\"id\":\"71ee82ec-7338-44d4-869b-d03b4268c529\",\"type\":\"Line\"},{\"attributes\":{\"axis_label\":\"Languages\",\"formatter\":{\"id\":\"3d82f934-5bbc-4044-8784-c07dc79fdfad\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"0d7e2c1a-299f-4ca8-8c78-e702edc24d68\",\"type\":\"BasicTicker\"}},\"id\":\"95582a99-f3c0-493e-aafc-102e7881bee3\",\"type\":\"LinearAxis\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"0d7e2c1a-299f-4ca8-8c78-e702edc24d68\",\"type\":\"BasicTicker\"}},\"id\":\"74fabac9-6f60-47e4-881f-5bba425f2bb3\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"5ef143df-4207-483c-a87f-90afcafcfdaa\",\"type\":\"ToolEvents\"},{\"attributes\":{\"data_source\":{\"id\":\"e1bbf6e9-e258-480b-80d0-b5b6552f22f6\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"07cb53d8-007b-450c-be5a-3de5fd601c20\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"80634c73-21da-44b0-bdfc-5be0afef6a45\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"bc7a0bb8-7db7-41f4-9ea8-854c1a9468ed\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"2b747354-d7be-4dbd-95ce-92b20dae01bd\",\"type\":\"ResetTool\"},{\"attributes\":{\"data_source\":{\"id\":\"1ef309dc-6faf-48c1-9586-b4dabe9801a0\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"ed2e05d4-bb50-4048-9e68-9eb7ab84596a\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"98bc8d8b-6bed-4881-94fb-a7d3934479c3\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y_values\",\"x_values\"],\"data\":{\"chart_index\":[{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"},{\"series\":\"B\"}],\"series\":[\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\"],\"x_values\":[0,1,2,3,4,5,6,7,8,9],\"y_values\":[0.47979625739094633,0.5833740037442433,0.7520122967985529,0.24858744554726375,0.542549962388234,0.36053505981465983,0.43063078246998954,0.677219597154432,0.4676847405898725,0.4334849352291795]}},\"id\":\"bfbdc720-b650-43b4-978b-5406ae4586c7\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"ebe6c336-749f-4935-823a-7fd0189a4e6c\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"c6349590-1859-422a-9e63-b3f0376840e2\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"32f9d7dd-df39-47a3-836e-41ce790157c6\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"84c19b8a-3613-4f43-a51c-4255c06f6cad\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"71ee82ec-7338-44d4-869b-d03b4268c529\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"0e06490e-877f-4884-8211-201e510592d9\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"plot\":{\"id\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"tooltips\":[[\"index\",\"$index\"],[\"(x,y)\",\"($x, $y)\"]]},\"id\":\"ca1e5ec5-c6b6-41d1-aba0-047fcca033c6\",\"type\":\"HoverTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"y_values\",\"x_values\"],\"data\":{\"chart_index\":[{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"},{\"series\":\"E\"}],\"series\":[\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\",\"E\"],\"x_values\":[0,1,2,3,4,5,6,7,8,9],\"y_values\":[0.23760233057988545,0.7181517179338507,0.07449657050124514,0.736261654293345,0.19566542145127175,0.21768675327557752,0.9345039041957897,0.13749117616827666,0.3938478973927463,0.8263400744098668]}},\"id\":\"84c19b8a-3613-4f43-a51c-4255c06f6cad\",\"type\":\"ColumnDataSource\"}],\"root_ids\":[\"84afd664-2ff7-4df9-800c-4d3774ab696d\"]},\"title\":\"Bokeh Application\",\"version\":\"0.11.1\"}};\n var render_items = [{\"docid\":\"9cd59f8e-175a-450d-b0f4-c54cb2c24086\",\"elementid\":\"da76174b-db4d-426e-a0eb-a8bc22b11689\",\"modelid\":\"84afd664-2ff7-4df9-800c-4d3774ab696d\",\"notebook_comms_target\":\"c176a540-fb8c-4d14-b39f-140762192c3b\"}];\n \n Bokeh.embed.embed_items(docs_json, render_items);\n });\n },\n function(Bokeh) {\n }\n ];\n \n function run_inline_js() {\n for (var i = 0; i < inline_js.length; i++) {\n inline_js[i](window.Bokeh);\n }\n }\n \n if (window._bokeh_is_loading === 0) {\n console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n run_inline_js();\n } else {\n load_libs(js_urls, function() {\n console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n run_inline_js();\n });\n }\n }(this));\n</script>"
},
"metadata": {}
},
{
"output_type": "execute_result",
"data": {
"text/plain": "<bokeh.io._CommsHandle at 0x8d3a4d0>",
"text/html": "<p><code>&lt;Bokeh Notebook handle for <strong>In[1]</strong>&gt;</code></p>"
},
"metadata": {},
"execution_count": 1
}
]
}
],
"metadata": {
"hide_input": false,
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"file_extension": ".py",
"mimetype": "text/x-python",
"codemirror_mode": {
"version": 3,
"name": "ipython"
},
"nbconvert_exporter": "python",
"version": "3.4.4",
"pygments_lexer": "ipython3",
"name": "python"
},
"gist": {
"id": "",
"data": {
"description": "Bokeh dataframe hover example",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment