Skip to content

Instantly share code, notes, and snippets.

@ICBacon
Last active June 2, 2018 15:43
Show Gist options
  • Save ICBacon/9e5e352ca3a19e63cb26 to your computer and use it in GitHub Desktop.
Save ICBacon/9e5e352ca3a19e63cb26 to your computer and use it in GitHub Desktop.
Using Bokeh to visualize my gist activity as an intern
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Visualizing my gist activity as an intern\n",
"\n",
"Click [here](http://nbviewer.ipython.org/gist/ICBacon/9e5e352ca3a19e63cb26) to view this notebook on NBViewer"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
" \n",
" <link rel=\"stylesheet\" href=\"http://cdn.pydata.org/bokeh/release/bokeh-0.9.2.min.css\" type=\"text/css\" />\n",
" <script type=\"text/javascript\" src=\"http://cdn.pydata.org/bokeh/release/bokeh-0.9.2.min.js\"></script>\n",
" <script type=\"text/javascript\">\n",
" Bokeh.set_log_level(\"info\");\n",
" </script>\n",
" <div>\n",
" <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
" <span>BokehJS successfully loaded.</span>\n",
" </div>\n",
" <p style=\"background-color: #f2d7dc;\">Warning: BokehJS previously loaded</p>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from functools import partial\n",
"from bokeh.io import output_notebook\n",
"from bokeh.resources import CDN\n",
"from bokeh.models import BoxSelectTool, ColumnDataSource, HoverTool, OpenURL, TapTool\n",
"from bokeh.plotting import figure, output_file, show\n",
"from collections import OrderedDict\n",
"\n",
"output_notebook(resources=CDN)\n",
"\n",
"import requests\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def listGist(username, pages=3):\n",
" gists = []\n",
" for page in range(pages):\n",
" for gist in requests.get(\n",
" url = 'https://api.github.com/users/%s/gists'%username,\n",
" params = {\n",
" 'page': page+1\n",
" }\n",
" ).json():\n",
" gists.append(gist)\n",
" return gists"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"gists = listGist('ICBacon')"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"output_file(\"index.html\", mode = 'cdn' )\n",
"TOOLS = [BoxSelectTool(), HoverTool(), TapTool()]"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def shorten(phrase, name, max_length = 25):\n",
" if not phrase[name] or len(phrase[name]) <= max_length:\n",
" return phrase[name]\n",
" l = max_length - 3\n",
" return phrase[name][:min(l,len(phrase[name]))] + '...'\n",
"\n",
"shorten_func = partial(shorten, name = 'description')"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"#def runner(name):\n",
"# def shorten(phrase, max_length = 25):\n",
"# if not phrase[name] or len(phrase[name]) <= max_length:\n",
"# return phrase[name]\n",
"# l = max_length - 3\n",
"# return phrase[name][:min(l,len(phrase[name]))] + '...'\n",
"# return shorten"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"df = pd.DataFrame(gists)\n",
"#incorporate languages later\n",
"circleMult = 9\n",
"df['files'] = [len(f.keys())*circleMult for f in df['files']]\n",
"df['owner'] = [f['login'] for f in df['owner']]\n",
"df['created_at'] = pd.to_datetime(df['created_at'])\n",
"df['created_to'] = df.apply(lambda r : r['created_at'].strftime('%m-%d-%Y'), axis = 1)\n",
"df['updated_at'] = pd.to_datetime(df['updated_at'])\n",
"df['updated_to'] = df.apply(lambda r : r['updated_at'].strftime('%m-%d-%Y'), axis = 1)\n",
"df['index'] = df.index\n",
"df['short_description'] = df.apply(shorten_func, axis = 1)\n",
"\n",
"source = ColumnDataSource(df)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"collapsed": false,
"scrolled": false
},
"outputs": [
{
"data": {
"text/html": [
"<script type=\"text/javascript\">\n",
" Bokeh.$(function() {\n",
" var all_models = [{\"attributes\": {\"tags\": [], \"doc\": null, \"formats\": {}, \"id\": \"da1030d7-96ed-4617-a2ee-932517b157d9\"}, \"type\": \"DatetimeTickFormatter\", \"id\": \"da1030d7-96ed-4617-a2ee-932517b157d9\"}, {\"attributes\": {\"doc\": null, \"id\": \"ecfea2d4-b199-48ec-b68f-8a9994e2e651\", \"tags\": []}, \"type\": \"BasicTickFormatter\", \"id\": \"ecfea2d4-b199-48ec-b68f-8a9994e2e651\"}, {\"attributes\": {\"line_color\": {\"value\": \"blue\"}, \"line_alpha\": {\"value\": 1.0}, \"tags\": [], \"doc\": null, \"y1\": {\"field\": \"index\"}, \"y0\": {\"field\": \"index\"}, \"x0\": {\"field\": \"updated_at\"}, \"x1\": {\"field\": \"created_at\"}, \"id\": \"a2f3747e-d608-43ce-8e98-99a1c839ffdb\"}, \"type\": \"Segment\", \"id\": \"a2f3747e-d608-43ce-8e98-99a1c839ffdb\"}, {\"attributes\": {\"nonselection_glyph\": {\"type\": \"Circle\", \"id\": \"ff63f339-017c-4c0e-b483-b68d4f0f3f2a\"}, \"data_source\": {\"type\": \"ColumnDataSource\", \"id\": \"18e242c5-038a-4edb-9269-40d0a69bdb61\"}, \"tags\": [], \"doc\": null, \"selection_glyph\": null, \"id\": \"89ad7fac-c1ff-4eb8-9837-d1b9b98382fa\", \"glyph\": {\"type\": \"Circle\", \"id\": \"47cac537-1ccb-4043-b371-4996b774b3ce\"}}, \"type\": \"GlyphRenderer\", \"id\": \"89ad7fac-c1ff-4eb8-9837-d1b9b98382fa\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"id\": \"1cf7393f-ded7-45b6-ac8d-bb432610d307\", \"num_minor_ticks\": 5}, \"type\": \"DatetimeTicker\", \"id\": \"1cf7393f-ded7-45b6-ac8d-bb432610d307\"}, {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\", \"attributes\": {\"x_range\": {\"type\": \"DataRange1d\", \"id\": \"10b489f9-d29d-4e2f-afa3-34367837fa75\"}, \"right\": [], \"tags\": [], \"y_range\": {\"type\": \"DataRange1d\", \"id\": \"bf753f10-c797-4c46-b10d-108a623cf4e1\"}, \"renderers\": [{\"type\": \"DatetimeAxis\", \"id\": \"ef0bf64d-6526-41e5-a9e8-53372e9cf602\"}, {\"type\": \"Grid\", \"id\": \"539a3bd2-5527-44d4-9447-495cb54072ab\"}, {\"type\": \"LinearAxis\", \"id\": \"ddd3edc2-ab90-458e-9481-6420569e7440\"}, {\"type\": \"Grid\", \"id\": \"09d31c36-bb2b-4456-9220-91218fe22d26\"}, {\"type\": \"GlyphRenderer\", \"id\": \"5dad46dd-edb1-4220-9dfa-0aedb410bab0\"}, {\"type\": \"GlyphRenderer\", \"id\": \"89ad7fac-c1ff-4eb8-9837-d1b9b98382fa\"}], \"extra_y_ranges\": {}, \"extra_x_ranges\": {}, \"tool_events\": {\"type\": \"ToolEvents\", \"id\": \"764af3bd-7404-45e6-8ca6-3b48adb7cecd\"}, \"above\": [], \"doc\": null, \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\", \"tools\": [{\"type\": \"BoxSelectTool\", \"id\": \"8f14845b-cfd8-4927-9a46-5f0fc1198611\"}, {\"type\": \"HoverTool\", \"id\": \"48e6b211-3b56-4614-90d6-2e1d45823832\"}, {\"type\": \"TapTool\", \"id\": \"34cb5195-b5cf-4838-bebd-736e1cd351b9\"}], \"below\": [{\"type\": \"DatetimeAxis\", \"id\": \"ef0bf64d-6526-41e5-a9e8-53372e9cf602\"}], \"left\": [{\"type\": \"LinearAxis\", \"id\": \"ddd3edc2-ab90-458e-9481-6420569e7440\"}]}}, {\"attributes\": {\"nonselection_glyph\": {\"type\": \"Segment\", \"id\": \"f25c3e1d-a384-4329-ac06-37f32559251b\"}, \"data_source\": {\"type\": \"ColumnDataSource\", \"id\": \"18e242c5-038a-4edb-9269-40d0a69bdb61\"}, \"tags\": [], \"doc\": null, \"selection_glyph\": null, \"id\": \"5dad46dd-edb1-4220-9dfa-0aedb410bab0\", \"glyph\": {\"type\": \"Segment\", \"id\": \"a2f3747e-d608-43ce-8e98-99a1c839ffdb\"}}, \"type\": \"GlyphRenderer\", \"id\": \"5dad46dd-edb1-4220-9dfa-0aedb410bab0\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\"}, \"dimensions\": [\"width\", \"height\"], \"tags\": [], \"doc\": null, \"renderers\": [{\"type\": \"GlyphRenderer\", \"id\": \"5dad46dd-edb1-4220-9dfa-0aedb410bab0\"}, {\"type\": \"GlyphRenderer\", \"id\": \"89ad7fac-c1ff-4eb8-9837-d1b9b98382fa\"}], \"callback\": null, \"names\": [], \"id\": \"8f14845b-cfd8-4927-9a46-5f0fc1198611\"}, \"type\": \"BoxSelectTool\", \"id\": \"8f14845b-cfd8-4927-9a46-5f0fc1198611\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\"}, \"tags\": [], \"doc\": null, \"formatter\": {\"type\": \"DatetimeTickFormatter\", \"id\": \"da1030d7-96ed-4617-a2ee-932517b157d9\"}, \"ticker\": {\"type\": \"DatetimeTicker\", \"id\": \"1cf7393f-ded7-45b6-ac8d-bb432610d307\"}, \"id\": \"ef0bf64d-6526-41e5-a9e8-53372e9cf602\"}, \"type\": \"DatetimeAxis\", \"id\": \"ef0bf64d-6526-41e5-a9e8-53372e9cf602\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"renderers\": [], \"callback\": null, \"names\": [], \"id\": \"bf753f10-c797-4c46-b10d-108a623cf4e1\"}, \"type\": \"DataRange1d\", \"id\": \"bf753f10-c797-4c46-b10d-108a623cf4e1\"}, {\"attributes\": {\"column_names\": [\"files\", \"index\", \"commits_url\", \"forks_url\", \"description\", \"updated_at\", \"updated_to\", \"created_at\", \"comments_url\", \"html_url\", \"comments\", \"public\", \"owner\", \"short_description\", \"url\", \"git_pull_url\", \"git_push_url\", \"id\", \"created_to\", \"user\"], \"tags\": [], \"doc\": null, \"selected\": {\"2d\": {\"indices\": []}, \"1d\": {\"indices\": []}, \"0d\": {\"indices\": [], \"flag\": false}}, \"callback\": null, \"data\": {\"files\": [9, 18, 9, 9, 9, 9, 9, 27, 27, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 18, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 18, 9, 9, 9, 9, 9, 9, 18, 9, 18, 9, 9, 9], \"index\": [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], \"commits_url\": [\"https://api.github.com/gists/74da6f602f1ed7008393/commits\", \"https://api.github.com/gists/7e68806ccff7b37b8f68/commits\", \"https://api.github.com/gists/a86842c6d3a90815a14d/commits\", \"https://api.github.com/gists/8c19be2b28370ac07c14/commits\", \"https://api.github.com/gists/5d4b01611521ad0a8a63/commits\", \"https://api.github.com/gists/03798550fcb58d6b5f87/commits\", \"https://api.github.com/gists/8ea70152bf0d5a974662/commits\", \"https://api.github.com/gists/ef26d19581d6833ac80d/commits\", \"https://api.github.com/gists/3e84770552501388392d/commits\", \"https://api.github.com/gists/d0d1ab0700e5ae4bb2c1/commits\", \"https://api.github.com/gists/927814bb54680851fd71/commits\", \"https://api.github.com/gists/72ac6b5e1a7d392d6e5a/commits\", \"https://api.github.com/gists/95bfad289ad1eea9fbf6/commits\", \"https://api.github.com/gists/ca898dd6754576dc3990/commits\", \"https://api.github.com/gists/7987c5c066bc8a14e384/commits\", \"https://api.github.com/gists/2438ccf153ca65dfcab9/commits\", \"https://api.github.com/gists/576cd9de4ba39a768a4e/commits\", \"https://api.github.com/gists/9e5e352ca3a19e63cb26/commits\", \"https://api.github.com/gists/73ec6c48aaded0740916/commits\", \"https://api.github.com/gists/be5dcc5d1d73e522e97f/commits\", \"https://api.github.com/gists/2e5637497a565f4a3c32/commits\", \"https://api.github.com/gists/73e13f35b9c4556dbca7/commits\", \"https://api.github.com/gists/7b934780cb9d05cf24c9/commits\", \"https://api.github.com/gists/2e3742b04d7b4b89fbb0/commits\", \"https://api.github.com/gists/39e7a0f7212d2c3ba455/commits\", \"https://api.github.com/gists/869eec9c6c68571177c7/commits\", \"https://api.github.com/gists/37feba87db531c64cac9/commits\", \"https://api.github.com/gists/f3e6ce8e9de9f67ee37b/commits\", \"https://api.github.com/gists/781120cadc6952db3156/commits\", \"https://api.github.com/gists/4f019d7e9dcac29b6c77/commits\", \"https://api.github.com/gists/ed74e05cbd239f957325/commits\", \"https://api.github.com/gists/7bf4b75a8ced7fa248f8/commits\", \"https://api.github.com/gists/1284853a987088032026/commits\", \"https://api.github.com/gists/e6daec13b3080c7460a0/commits\", \"https://api.github.com/gists/5da105c8581876d46b20/commits\", \"https://api.github.com/gists/a5393878f95e5e65f101/commits\", \"https://api.github.com/gists/cb45120b75838f18b840/commits\", \"https://api.github.com/gists/9325153c88d850adffd0/commits\", \"https://api.github.com/gists/5499f4795661a1b3b96e/commits\", \"https://api.github.com/gists/09542b5880b37db431c0/commits\", \"https://api.github.com/gists/016370c231cdd2d84bab/commits\", \"https://api.github.com/gists/a86b9bb1af0eb3f5511b/commits\", \"https://api.github.com/gists/65d70343290be58c94be/commits\", \"https://api.github.com/gists/08f1dc5f3687c329e269/commits\", \"https://api.github.com/gists/0c37e47f24531557decd/commits\", \"https://api.github.com/gists/355920583a359b8c8993/commits\", \"https://api.github.com/gists/a61035e05ee842cda5fe/commits\", \"https://api.github.com/gists/7f170e0d7cd4061b9f16/commits\", \"https://api.github.com/gists/d75d43a380530b37e4ba/commits\", \"https://api.github.com/gists/dff8f954434f593ee58d/commits\"], \"forks_url\": [\"https://api.github.com/gists/74da6f602f1ed7008393/forks\", \"https://api.github.com/gists/7e68806ccff7b37b8f68/forks\", \"https://api.github.com/gists/a86842c6d3a90815a14d/forks\", \"https://api.github.com/gists/8c19be2b28370ac07c14/forks\", \"https://api.github.com/gists/5d4b01611521ad0a8a63/forks\", \"https://api.github.com/gists/03798550fcb58d6b5f87/forks\", \"https://api.github.com/gists/8ea70152bf0d5a974662/forks\", \"https://api.github.com/gists/ef26d19581d6833ac80d/forks\", \"https://api.github.com/gists/3e84770552501388392d/forks\", \"https://api.github.com/gists/d0d1ab0700e5ae4bb2c1/forks\", \"https://api.github.com/gists/927814bb54680851fd71/forks\", \"https://api.github.com/gists/72ac6b5e1a7d392d6e5a/forks\", \"https://api.github.com/gists/95bfad289ad1eea9fbf6/forks\", \"https://api.github.com/gists/ca898dd6754576dc3990/forks\", \"https://api.github.com/gists/7987c5c066bc8a14e384/forks\", \"https://api.github.com/gists/2438ccf153ca65dfcab9/forks\", \"https://api.github.com/gists/576cd9de4ba39a768a4e/forks\", \"https://api.github.com/gists/9e5e352ca3a19e63cb26/forks\", \"https://api.github.com/gists/73ec6c48aaded0740916/forks\", \"https://api.github.com/gists/be5dcc5d1d73e522e97f/forks\", \"https://api.github.com/gists/2e5637497a565f4a3c32/forks\", \"https://api.github.com/gists/73e13f35b9c4556dbca7/forks\", \"https://api.github.com/gists/7b934780cb9d05cf24c9/forks\", \"https://api.github.com/gists/2e3742b04d7b4b89fbb0/forks\", \"https://api.github.com/gists/39e7a0f7212d2c3ba455/forks\", \"https://api.github.com/gists/869eec9c6c68571177c7/forks\", \"https://api.github.com/gists/37feba87db531c64cac9/forks\", \"https://api.github.com/gists/f3e6ce8e9de9f67ee37b/forks\", \"https://api.github.com/gists/781120cadc6952db3156/forks\", \"https://api.github.com/gists/4f019d7e9dcac29b6c77/forks\", \"https://api.github.com/gists/ed74e05cbd239f957325/forks\", \"https://api.github.com/gists/7bf4b75a8ced7fa248f8/forks\", \"https://api.github.com/gists/1284853a987088032026/forks\", \"https://api.github.com/gists/e6daec13b3080c7460a0/forks\", \"https://api.github.com/gists/5da105c8581876d46b20/forks\", \"https://api.github.com/gists/a5393878f95e5e65f101/forks\", \"https://api.github.com/gists/cb45120b75838f18b840/forks\", \"https://api.github.com/gists/9325153c88d850adffd0/forks\", \"https://api.github.com/gists/5499f4795661a1b3b96e/forks\", \"https://api.github.com/gists/09542b5880b37db431c0/forks\", \"https://api.github.com/gists/016370c231cdd2d84bab/forks\", \"https://api.github.com/gists/a86b9bb1af0eb3f5511b/forks\", \"https://api.github.com/gists/65d70343290be58c94be/forks\", \"https://api.github.com/gists/08f1dc5f3687c329e269/forks\", \"https://api.github.com/gists/0c37e47f24531557decd/forks\", \"https://api.github.com/gists/355920583a359b8c8993/forks\", \"https://api.github.com/gists/a61035e05ee842cda5fe/forks\", \"https://api.github.com/gists/7f170e0d7cd4061b9f16/forks\", \"https://api.github.com/gists/d75d43a380530b37e4ba/forks\", \"https://api.github.com/gists/dff8f954434f593ee58d/forks\"], \"description\": [\"Example Gist\", \"Using pandas to visualize pypi package release data\", \"Day 28 at Continuum\", \"Using pandas tables to visualize PyPi package data\", \"Day 27 at Continuum\", \"Day 26 at Continuum\", \"Day 25 at Continuum\", \"My forked gists and a brand new gist, nbviewer, and bl.ocks workflow\", \"My starred gists and a brand new gist, nbviewer, and bl.ocks workflow http://bl.ocks.org/tonyfast/raw/1e1bc45d17020fba5148/\", \"Day 24 at Continuum\", \"Day 23 at Continuum\", \"Day 22 at Continuum\", \"Day 21 at Continuum\", \"Day 20 at Continuum\", null, \"PyPi requests for bokeh\", \"Day 19 at Continuum\", \"Using Bokeh to visualize my gist activity as an intern\", \"Day 18 at Continuum\", \"Day 17 at Continuum\", \"Day 16 at Continuum\", \"Day 15 at Continuum\", \"Day 14 at Continuum\", \"Studying Color with Bokeh and Grapefruit http://nbviewer.ipython.org/gist/tonyfast/fae0eacea79bbd28996d/ColorStudyGrapefruit.ipynb\", \"My First Bokeh Line Plot\", \"Day 13 at Continuum\", \"Day 12 at Continuum\", \"\", \"Day 11 at Continuum\", \"Days 9 and 10 at Continuum\", \"AdamsBasicRequestNumPy\", \"simpleRequestNumPy\", \"simpleRequest\", \"Some Things I've Learned During Project\", \"\", \"Day 8 at Continuum\", \"Day 7 at Continuum\", \"Accessing Old Gists\", \"Original Version of My First Notebook\", \"Day 6 at Continuum\", \"Day 5 at Continuum\", \"\", \"List of useful resources obtained during the summer\", \"Day 4 at Continuum\", \"First Notebook On Defining A Field In Mathematics\", \"Day 3 at Continuum\", null, \"Day 2 at Continuum\", \"\", \"My First Day at Continuum\"], \"url\": [\"https://api.github.com/gists/74da6f602f1ed7008393\", \"https://api.github.com/gists/7e68806ccff7b37b8f68\", \"https://api.github.com/gists/a86842c6d3a90815a14d\", \"https://api.github.com/gists/8c19be2b28370ac07c14\", \"https://api.github.com/gists/5d4b01611521ad0a8a63\", \"https://api.github.com/gists/03798550fcb58d6b5f87\", \"https://api.github.com/gists/8ea70152bf0d5a974662\", \"https://api.github.com/gists/ef26d19581d6833ac80d\", \"https://api.github.com/gists/3e84770552501388392d\", \"https://api.github.com/gists/d0d1ab0700e5ae4bb2c1\", \"https://api.github.com/gists/927814bb54680851fd71\", \"https://api.github.com/gists/72ac6b5e1a7d392d6e5a\", \"https://api.github.com/gists/95bfad289ad1eea9fbf6\", \"https://api.github.com/gists/ca898dd6754576dc3990\", \"https://api.github.com/gists/7987c5c066bc8a14e384\", \"https://api.github.com/gists/2438ccf153ca65dfcab9\", \"https://api.github.com/gists/576cd9de4ba39a768a4e\", \"https://api.github.com/gists/9e5e352ca3a19e63cb26\", \"https://api.github.com/gists/73ec6c48aaded0740916\", \"https://api.github.com/gists/be5dcc5d1d73e522e97f\", \"https://api.github.com/gists/2e5637497a565f4a3c32\", \"https://api.github.com/gists/73e13f35b9c4556dbca7\", \"https://api.github.com/gists/7b934780cb9d05cf24c9\", \"https://api.github.com/gists/2e3742b04d7b4b89fbb0\", \"https://api.github.com/gists/39e7a0f7212d2c3ba455\", \"https://api.github.com/gists/869eec9c6c68571177c7\", \"https://api.github.com/gists/37feba87db531c64cac9\", \"https://api.github.com/gists/f3e6ce8e9de9f67ee37b\", \"https://api.github.com/gists/781120cadc6952db3156\", \"https://api.github.com/gists/4f019d7e9dcac29b6c77\", \"https://api.github.com/gists/ed74e05cbd239f957325\", \"https://api.github.com/gists/7bf4b75a8ced7fa248f8\", \"https://api.github.com/gists/1284853a987088032026\", \"https://api.github.com/gists/e6daec13b3080c7460a0\", \"https://api.github.com/gists/5da105c8581876d46b20\", \"https://api.github.com/gists/a5393878f95e5e65f101\", \"https://api.github.com/gists/cb45120b75838f18b840\", \"https://api.github.com/gists/9325153c88d850adffd0\", \"https://api.github.com/gists/5499f4795661a1b3b96e\", \"https://api.github.com/gists/09542b5880b37db431c0\", \"https://api.github.com/gists/016370c231cdd2d84bab\", \"https://api.github.com/gists/a86b9bb1af0eb3f5511b\", \"https://api.github.com/gists/65d70343290be58c94be\", \"https://api.github.com/gists/08f1dc5f3687c329e269\", \"https://api.github.com/gists/0c37e47f24531557decd\", \"https://api.github.com/gists/355920583a359b8c8993\", \"https://api.github.com/gists/a61035e05ee842cda5fe\", \"https://api.github.com/gists/7f170e0d7cd4061b9f16\", \"https://api.github.com/gists/d75d43a380530b37e4ba\", \"https://api.github.com/gists/dff8f954434f593ee58d\"], \"updated_to\": [\"08-21-2015\", \"08-21-2015\", \"08-19-2015\", \"08-17-2015\", \"08-17-2015\", \"08-17-2015\", \"08-17-2015\", \"08-13-2015\", \"08-13-2015\", \"08-12-2015\", \"08-19-2015\", \"08-12-2015\", \"08-12-2015\", \"08-19-2015\", \"08-11-2015\", \"08-11-2015\", \"08-19-2015\", \"08-06-2015\", \"08-19-2015\", \"08-19-2015\", \"08-04-2015\", \"08-03-2015\", \"08-03-2015\", \"08-03-2015\", \"08-03-2015\", \"08-04-2015\", \"07-28-2015\", \"07-24-2015\", \"07-28-2015\", \"07-24-2015\", \"07-24-2015\", \"07-24-2015\", \"07-24-2015\", \"07-24-2015\", \"07-21-2015\", \"07-24-2015\", \"07-21-2015\", \"07-17-2015\", \"07-17-2015\", \"07-21-2015\", \"07-17-2015\", \"07-16-2015\", \"08-20-2015\", \"07-16-2015\", \"08-19-2015\", \"07-15-2015\", \"07-13-2015\", \"08-19-2015\", \"07-10-2015\", \"08-19-2015\"], \"created_at\": [1440179455000.0, 1439935470000.0, 1439931705000.0, 1439853598000.0, 1439834424000.0, 1439834144000.0, 1439833626000.0, 1439493545000.0, 1439488827000.0, 1439407188000.0, 1439406575000.0, 1439400782000.0, 1439400583000.0, 1439400298000.0, 1439327370000.0, 1439322635000.0, 1438794167000.0, 1438719044000.0, 1438708074000.0, 1438630909000.0, 1438630108000.0, 1438629909000.0, 1438629068000.0, 1438627471000.0, 1438621863000.0, 1438103855000.0, 1438103714000.0, 1437767529000.0, 1437755310000.0, 1437754874000.0, 1437754278000.0, 1437754204000.0, 1437754024000.0, 1437510869000.0, 1437509028000.0, 1437502751000.0, 1437502284000.0, 1437160854000.0, 1437157192000.0, 1437150608000.0, 1437062997000.0, 1436992095000.0, 1436980253000.0, 1436977530000.0, 1436912363000.0, 1436892177000.0, 1436823885000.0, 1436804271000.0, 1436544988000.0, 1436543588000.0], \"comments_url\": [\"https://api.github.com/gists/74da6f602f1ed7008393/comments\", \"https://api.github.com/gists/7e68806ccff7b37b8f68/comments\", \"https://api.github.com/gists/a86842c6d3a90815a14d/comments\", \"https://api.github.com/gists/8c19be2b28370ac07c14/comments\", \"https://api.github.com/gists/5d4b01611521ad0a8a63/comments\", \"https://api.github.com/gists/03798550fcb58d6b5f87/comments\", \"https://api.github.com/gists/8ea70152bf0d5a974662/comments\", \"https://api.github.com/gists/ef26d19581d6833ac80d/comments\", \"https://api.github.com/gists/3e84770552501388392d/comments\", \"https://api.github.com/gists/d0d1ab0700e5ae4bb2c1/comments\", \"https://api.github.com/gists/927814bb54680851fd71/comments\", \"https://api.github.com/gists/72ac6b5e1a7d392d6e5a/comments\", \"https://api.github.com/gists/95bfad289ad1eea9fbf6/comments\", \"https://api.github.com/gists/ca898dd6754576dc3990/comments\", \"https://api.github.com/gists/7987c5c066bc8a14e384/comments\", \"https://api.github.com/gists/2438ccf153ca65dfcab9/comments\", \"https://api.github.com/gists/576cd9de4ba39a768a4e/comments\", \"https://api.github.com/gists/9e5e352ca3a19e63cb26/comments\", \"https://api.github.com/gists/73ec6c48aaded0740916/comments\", \"https://api.github.com/gists/be5dcc5d1d73e522e97f/comments\", \"https://api.github.com/gists/2e5637497a565f4a3c32/comments\", \"https://api.github.com/gists/73e13f35b9c4556dbca7/comments\", \"https://api.github.com/gists/7b934780cb9d05cf24c9/comments\", \"https://api.github.com/gists/2e3742b04d7b4b89fbb0/comments\", \"https://api.github.com/gists/39e7a0f7212d2c3ba455/comments\", \"https://api.github.com/gists/869eec9c6c68571177c7/comments\", \"https://api.github.com/gists/37feba87db531c64cac9/comments\", \"https://api.github.com/gists/f3e6ce8e9de9f67ee37b/comments\", \"https://api.github.com/gists/781120cadc6952db3156/comments\", \"https://api.github.com/gists/4f019d7e9dcac29b6c77/comments\", \"https://api.github.com/gists/ed74e05cbd239f957325/comments\", \"https://api.github.com/gists/7bf4b75a8ced7fa248f8/comments\", \"https://api.github.com/gists/1284853a987088032026/comments\", \"https://api.github.com/gists/e6daec13b3080c7460a0/comments\", \"https://api.github.com/gists/5da105c8581876d46b20/comments\", \"https://api.github.com/gists/a5393878f95e5e65f101/comments\", \"https://api.github.com/gists/cb45120b75838f18b840/comments\", \"https://api.github.com/gists/9325153c88d850adffd0/comments\", \"https://api.github.com/gists/5499f4795661a1b3b96e/comments\", \"https://api.github.com/gists/09542b5880b37db431c0/comments\", \"https://api.github.com/gists/016370c231cdd2d84bab/comments\", \"https://api.github.com/gists/a86b9bb1af0eb3f5511b/comments\", \"https://api.github.com/gists/65d70343290be58c94be/comments\", \"https://api.github.com/gists/08f1dc5f3687c329e269/comments\", \"https://api.github.com/gists/0c37e47f24531557decd/comments\", \"https://api.github.com/gists/355920583a359b8c8993/comments\", \"https://api.github.com/gists/a61035e05ee842cda5fe/comments\", \"https://api.github.com/gists/7f170e0d7cd4061b9f16/comments\", \"https://api.github.com/gists/d75d43a380530b37e4ba/comments\", \"https://api.github.com/gists/dff8f954434f593ee58d/comments\"], \"updated_at\": [1440179455000.0, 1440179267000.0, 1440018952000.0, 1439853598000.0, 1439853279000.0, 1439834216000.0, 1439833626000.0, 1439497047000.0, 1439488827000.0, 1439407188000.0, 1440018011000.0, 1439401130000.0, 1439400583000.0, 1440017722000.0, 1439327370000.0, 1439322635000.0, 1440016994000.0, 1438902860000.0, 1440016773000.0, 1440016627000.0, 1438717763000.0, 1438629909000.0, 1438629725000.0, 1438627471000.0, 1438627279000.0, 1438707664000.0, 1438103714000.0, 1437767529000.0, 1438103899000.0, 1437754874000.0, 1437754278000.0, 1437754204000.0, 1437754024000.0, 1437754551000.0, 1437509102000.0, 1437755021000.0, 1437502284000.0, 1437167685000.0, 1437157564000.0, 1437502608000.0, 1437150389000.0, 1437082393000.0, 1440108750000.0, 1437062882000.0, 1440012195000.0, 1436996480000.0, 1436823885000.0, 1440006923000.0, 1436552589000.0, 1440006726000.0], \"comments\": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], \"html_url\": [\"https://gist.github.com/74da6f602f1ed7008393\", \"https://gist.github.com/7e68806ccff7b37b8f68\", \"https://gist.github.com/a86842c6d3a90815a14d\", \"https://gist.github.com/8c19be2b28370ac07c14\", \"https://gist.github.com/5d4b01611521ad0a8a63\", \"https://gist.github.com/03798550fcb58d6b5f87\", \"https://gist.github.com/8ea70152bf0d5a974662\", \"https://gist.github.com/ef26d19581d6833ac80d\", \"https://gist.github.com/3e84770552501388392d\", \"https://gist.github.com/d0d1ab0700e5ae4bb2c1\", \"https://gist.github.com/927814bb54680851fd71\", \"https://gist.github.com/72ac6b5e1a7d392d6e5a\", \"https://gist.github.com/95bfad289ad1eea9fbf6\", \"https://gist.github.com/ca898dd6754576dc3990\", \"https://gist.github.com/7987c5c066bc8a14e384\", \"https://gist.github.com/2438ccf153ca65dfcab9\", \"https://gist.github.com/576cd9de4ba39a768a4e\", \"https://gist.github.com/9e5e352ca3a19e63cb26\", \"https://gist.github.com/73ec6c48aaded0740916\", \"https://gist.github.com/be5dcc5d1d73e522e97f\", \"https://gist.github.com/2e5637497a565f4a3c32\", \"https://gist.github.com/73e13f35b9c4556dbca7\", \"https://gist.github.com/7b934780cb9d05cf24c9\", \"https://gist.github.com/2e3742b04d7b4b89fbb0\", \"https://gist.github.com/39e7a0f7212d2c3ba455\", \"https://gist.github.com/869eec9c6c68571177c7\", \"https://gist.github.com/37feba87db531c64cac9\", \"https://gist.github.com/f3e6ce8e9de9f67ee37b\", \"https://gist.github.com/781120cadc6952db3156\", \"https://gist.github.com/4f019d7e9dcac29b6c77\", \"https://gist.github.com/ed74e05cbd239f957325\", \"https://gist.github.com/7bf4b75a8ced7fa248f8\", \"https://gist.github.com/1284853a987088032026\", \"https://gist.github.com/e6daec13b3080c7460a0\", \"https://gist.github.com/5da105c8581876d46b20\", \"https://gist.github.com/a5393878f95e5e65f101\", \"https://gist.github.com/cb45120b75838f18b840\", \"https://gist.github.com/9325153c88d850adffd0\", \"https://gist.github.com/5499f4795661a1b3b96e\", \"https://gist.github.com/09542b5880b37db431c0\", \"https://gist.github.com/016370c231cdd2d84bab\", \"https://gist.github.com/a86b9bb1af0eb3f5511b\", \"https://gist.github.com/65d70343290be58c94be\", \"https://gist.github.com/08f1dc5f3687c329e269\", \"https://gist.github.com/0c37e47f24531557decd\", \"https://gist.github.com/355920583a359b8c8993\", \"https://gist.github.com/a61035e05ee842cda5fe\", \"https://gist.github.com/7f170e0d7cd4061b9f16\", \"https://gist.github.com/d75d43a380530b37e4ba\", \"https://gist.github.com/dff8f954434f593ee58d\"], \"git_pull_url\": [\"https://gist.github.com/74da6f602f1ed7008393.git\", \"https://gist.github.com/7e68806ccff7b37b8f68.git\", \"https://gist.github.com/a86842c6d3a90815a14d.git\", \"https://gist.github.com/8c19be2b28370ac07c14.git\", \"https://gist.github.com/5d4b01611521ad0a8a63.git\", \"https://gist.github.com/03798550fcb58d6b5f87.git\", \"https://gist.github.com/8ea70152bf0d5a974662.git\", \"https://gist.github.com/ef26d19581d6833ac80d.git\", \"https://gist.github.com/3e84770552501388392d.git\", \"https://gist.github.com/d0d1ab0700e5ae4bb2c1.git\", \"https://gist.github.com/927814bb54680851fd71.git\", \"https://gist.github.com/72ac6b5e1a7d392d6e5a.git\", \"https://gist.github.com/95bfad289ad1eea9fbf6.git\", \"https://gist.github.com/ca898dd6754576dc3990.git\", \"https://gist.github.com/7987c5c066bc8a14e384.git\", \"https://gist.github.com/2438ccf153ca65dfcab9.git\", \"https://gist.github.com/576cd9de4ba39a768a4e.git\", \"https://gist.github.com/9e5e352ca3a19e63cb26.git\", \"https://gist.github.com/73ec6c48aaded0740916.git\", \"https://gist.github.com/be5dcc5d1d73e522e97f.git\", \"https://gist.github.com/2e5637497a565f4a3c32.git\", \"https://gist.github.com/73e13f35b9c4556dbca7.git\", \"https://gist.github.com/7b934780cb9d05cf24c9.git\", \"https://gist.github.com/2e3742b04d7b4b89fbb0.git\", \"https://gist.github.com/39e7a0f7212d2c3ba455.git\", \"https://gist.github.com/869eec9c6c68571177c7.git\", \"https://gist.github.com/37feba87db531c64cac9.git\", \"https://gist.github.com/f3e6ce8e9de9f67ee37b.git\", \"https://gist.github.com/781120cadc6952db3156.git\", \"https://gist.github.com/4f019d7e9dcac29b6c77.git\", \"https://gist.github.com/ed74e05cbd239f957325.git\", \"https://gist.github.com/7bf4b75a8ced7fa248f8.git\", \"https://gist.github.com/1284853a987088032026.git\", \"https://gist.github.com/e6daec13b3080c7460a0.git\", \"https://gist.github.com/5da105c8581876d46b20.git\", \"https://gist.github.com/a5393878f95e5e65f101.git\", \"https://gist.github.com/cb45120b75838f18b840.git\", \"https://gist.github.com/9325153c88d850adffd0.git\", \"https://gist.github.com/5499f4795661a1b3b96e.git\", \"https://gist.github.com/09542b5880b37db431c0.git\", \"https://gist.github.com/016370c231cdd2d84bab.git\", \"https://gist.github.com/a86b9bb1af0eb3f5511b.git\", \"https://gist.github.com/65d70343290be58c94be.git\", \"https://gist.github.com/08f1dc5f3687c329e269.git\", \"https://gist.github.com/0c37e47f24531557decd.git\", \"https://gist.github.com/355920583a359b8c8993.git\", \"https://gist.github.com/a61035e05ee842cda5fe.git\", \"https://gist.github.com/7f170e0d7cd4061b9f16.git\", \"https://gist.github.com/d75d43a380530b37e4ba.git\", \"https://gist.github.com/dff8f954434f593ee58d.git\"], \"public\": [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true], \"user\": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null], \"short_description\": [\"Example Gist\", \"Using pandas to visual...\", \"Day 28 at Continuum\", \"Using pandas tables to...\", \"Day 27 at Continuum\", \"Day 26 at Continuum\", \"Day 25 at Continuum\", \"My forked gists and a ...\", \"My starred gists and a...\", \"Day 24 at Continuum\", \"Day 23 at Continuum\", \"Day 22 at Continuum\", \"Day 21 at Continuum\", \"Day 20 at Continuum\", null, \"PyPi requests for bokeh\", \"Day 19 at Continuum\", \"Using Bokeh to visuali...\", \"Day 18 at Continuum\", \"Day 17 at Continuum\", \"Day 16 at Continuum\", \"Day 15 at Continuum\", \"Day 14 at Continuum\", \"Studying Color with Bo...\", \"My First Bokeh Line Plot\", \"Day 13 at Continuum\", \"Day 12 at Continuum\", \"\", \"Day 11 at Continuum\", \"Days 9 and 10 at Conti...\", \"AdamsBasicRequestNumPy\", \"simpleRequestNumPy\", \"simpleRequest\", \"Some Things I've Learn...\", \"\", \"Day 8 at Continuum\", \"Day 7 at Continuum\", \"Accessing Old Gists\", \"Original Version of My...\", \"Day 6 at Continuum\", \"Day 5 at Continuum\", \"\", \"List of useful resourc...\", \"Day 4 at Continuum\", \"First Notebook On Defi...\", \"Day 3 at Continuum\", null, \"Day 2 at Continuum\", \"\", \"My First Day at Continuum\"], \"git_push_url\": [\"https://gist.github.com/74da6f602f1ed7008393.git\", \"https://gist.github.com/7e68806ccff7b37b8f68.git\", \"https://gist.github.com/a86842c6d3a90815a14d.git\", \"https://gist.github.com/8c19be2b28370ac07c14.git\", \"https://gist.github.com/5d4b01611521ad0a8a63.git\", \"https://gist.github.com/03798550fcb58d6b5f87.git\", \"https://gist.github.com/8ea70152bf0d5a974662.git\", \"https://gist.github.com/ef26d19581d6833ac80d.git\", \"https://gist.github.com/3e84770552501388392d.git\", \"https://gist.github.com/d0d1ab0700e5ae4bb2c1.git\", \"https://gist.github.com/927814bb54680851fd71.git\", \"https://gist.github.com/72ac6b5e1a7d392d6e5a.git\", \"https://gist.github.com/95bfad289ad1eea9fbf6.git\", \"https://gist.github.com/ca898dd6754576dc3990.git\", \"https://gist.github.com/7987c5c066bc8a14e384.git\", \"https://gist.github.com/2438ccf153ca65dfcab9.git\", \"https://gist.github.com/576cd9de4ba39a768a4e.git\", \"https://gist.github.com/9e5e352ca3a19e63cb26.git\", \"https://gist.github.com/73ec6c48aaded0740916.git\", \"https://gist.github.com/be5dcc5d1d73e522e97f.git\", \"https://gist.github.com/2e5637497a565f4a3c32.git\", \"https://gist.github.com/73e13f35b9c4556dbca7.git\", \"https://gist.github.com/7b934780cb9d05cf24c9.git\", \"https://gist.github.com/2e3742b04d7b4b89fbb0.git\", \"https://gist.github.com/39e7a0f7212d2c3ba455.git\", \"https://gist.github.com/869eec9c6c68571177c7.git\", \"https://gist.github.com/37feba87db531c64cac9.git\", \"https://gist.github.com/f3e6ce8e9de9f67ee37b.git\", \"https://gist.github.com/781120cadc6952db3156.git\", \"https://gist.github.com/4f019d7e9dcac29b6c77.git\", \"https://gist.github.com/ed74e05cbd239f957325.git\", \"https://gist.github.com/7bf4b75a8ced7fa248f8.git\", \"https://gist.github.com/1284853a987088032026.git\", \"https://gist.github.com/e6daec13b3080c7460a0.git\", \"https://gist.github.com/5da105c8581876d46b20.git\", \"https://gist.github.com/a5393878f95e5e65f101.git\", \"https://gist.github.com/cb45120b75838f18b840.git\", \"https://gist.github.com/9325153c88d850adffd0.git\", \"https://gist.github.com/5499f4795661a1b3b96e.git\", \"https://gist.github.com/09542b5880b37db431c0.git\", \"https://gist.github.com/016370c231cdd2d84bab.git\", \"https://gist.github.com/a86b9bb1af0eb3f5511b.git\", \"https://gist.github.com/65d70343290be58c94be.git\", \"https://gist.github.com/08f1dc5f3687c329e269.git\", \"https://gist.github.com/0c37e47f24531557decd.git\", \"https://gist.github.com/355920583a359b8c8993.git\", \"https://gist.github.com/a61035e05ee842cda5fe.git\", \"https://gist.github.com/7f170e0d7cd4061b9f16.git\", \"https://gist.github.com/d75d43a380530b37e4ba.git\", \"https://gist.github.com/dff8f954434f593ee58d.git\"], \"owner\": [\"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\", \"ICBacon\"], \"id\": [\"74da6f602f1ed7008393\", \"7e68806ccff7b37b8f68\", \"a86842c6d3a90815a14d\", \"8c19be2b28370ac07c14\", \"5d4b01611521ad0a8a63\", \"03798550fcb58d6b5f87\", \"8ea70152bf0d5a974662\", \"ef26d19581d6833ac80d\", \"3e84770552501388392d\", \"d0d1ab0700e5ae4bb2c1\", \"927814bb54680851fd71\", \"72ac6b5e1a7d392d6e5a\", \"95bfad289ad1eea9fbf6\", \"ca898dd6754576dc3990\", \"7987c5c066bc8a14e384\", \"2438ccf153ca65dfcab9\", \"576cd9de4ba39a768a4e\", \"9e5e352ca3a19e63cb26\", \"73ec6c48aaded0740916\", \"be5dcc5d1d73e522e97f\", \"2e5637497a565f4a3c32\", \"73e13f35b9c4556dbca7\", \"7b934780cb9d05cf24c9\", \"2e3742b04d7b4b89fbb0\", \"39e7a0f7212d2c3ba455\", \"869eec9c6c68571177c7\", \"37feba87db531c64cac9\", \"f3e6ce8e9de9f67ee37b\", \"781120cadc6952db3156\", \"4f019d7e9dcac29b6c77\", \"ed74e05cbd239f957325\", \"7bf4b75a8ced7fa248f8\", \"1284853a987088032026\", \"e6daec13b3080c7460a0\", \"5da105c8581876d46b20\", \"a5393878f95e5e65f101\", \"cb45120b75838f18b840\", \"9325153c88d850adffd0\", \"5499f4795661a1b3b96e\", \"09542b5880b37db431c0\", \"016370c231cdd2d84bab\", \"a86b9bb1af0eb3f5511b\", \"65d70343290be58c94be\", \"08f1dc5f3687c329e269\", \"0c37e47f24531557decd\", \"355920583a359b8c8993\", \"a61035e05ee842cda5fe\", \"7f170e0d7cd4061b9f16\", \"d75d43a380530b37e4ba\", \"dff8f954434f593ee58d\"], \"created_to\": [\"08-21-2015\", \"08-18-2015\", \"08-18-2015\", \"08-17-2015\", \"08-17-2015\", \"08-17-2015\", \"08-17-2015\", \"08-13-2015\", \"08-13-2015\", \"08-12-2015\", \"08-12-2015\", \"08-12-2015\", \"08-12-2015\", \"08-12-2015\", \"08-11-2015\", \"08-11-2015\", \"08-05-2015\", \"08-04-2015\", \"08-04-2015\", \"08-03-2015\", \"08-03-2015\", \"08-03-2015\", \"08-03-2015\", \"08-03-2015\", \"08-03-2015\", \"07-28-2015\", \"07-28-2015\", \"07-24-2015\", \"07-24-2015\", \"07-24-2015\", \"07-24-2015\", \"07-24-2015\", \"07-24-2015\", \"07-21-2015\", \"07-21-2015\", \"07-21-2015\", \"07-21-2015\", \"07-17-2015\", \"07-17-2015\", \"07-17-2015\", \"07-16-2015\", \"07-15-2015\", \"07-15-2015\", \"07-15-2015\", \"07-14-2015\", \"07-14-2015\", \"07-13-2015\", \"07-13-2015\", \"07-10-2015\", \"07-10-2015\"]}, \"id\": \"18e242c5-038a-4edb-9269-40d0a69bdb61\"}, \"type\": \"ColumnDataSource\", \"id\": \"18e242c5-038a-4edb-9269-40d0a69bdb61\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\"}, \"tags\": [], \"doc\": null, \"formatter\": {\"type\": \"BasicTickFormatter\", \"id\": \"ecfea2d4-b199-48ec-b68f-8a9994e2e651\"}, \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"f67f37e5-5d63-4bcc-a4d3-dff46a81ee1c\"}, \"id\": \"ddd3edc2-ab90-458e-9481-6420569e7440\"}, \"type\": \"LinearAxis\", \"id\": \"ddd3edc2-ab90-458e-9481-6420569e7440\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"mantissas\": [2, 5, 10], \"id\": \"f67f37e5-5d63-4bcc-a4d3-dff46a81ee1c\", \"num_minor_ticks\": 5}, \"type\": \"BasicTicker\", \"id\": \"f67f37e5-5d63-4bcc-a4d3-dff46a81ee1c\"}, {\"attributes\": {\"tooltips\": [[\"index\", \"$index\"], [\"description\", \"@short_description\"], [\"created\", \"@created_to\"], [\"updated\", \"@updated_to\"]], \"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\"}, \"tags\": [], \"doc\": null, \"renderers\": [], \"callback\": null, \"names\": [], \"id\": \"48e6b211-3b56-4614-90d6-2e1d45823832\"}, \"type\": \"HoverTool\", \"id\": \"48e6b211-3b56-4614-90d6-2e1d45823832\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\"}, \"tags\": [], \"doc\": null, \"dimension\": 1, \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"f67f37e5-5d63-4bcc-a4d3-dff46a81ee1c\"}, \"id\": \"09d31c36-bb2b-4456-9220-91218fe22d26\"}, \"type\": \"Grid\", \"id\": \"09d31c36-bb2b-4456-9220-91218fe22d26\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\"}, \"tags\": [], \"doc\": null, \"dimension\": 0, \"ticker\": {\"type\": \"DatetimeTicker\", \"id\": \"1cf7393f-ded7-45b6-ac8d-bb432610d307\"}, \"id\": \"539a3bd2-5527-44d4-9447-495cb54072ab\"}, \"type\": \"Grid\", \"id\": \"539a3bd2-5527-44d4-9447-495cb54072ab\"}, {\"attributes\": {\"line_color\": {\"value\": \"purple\"}, \"line_alpha\": {\"value\": 1.0}, \"fill_color\": {\"value\": \"purple\"}, \"tags\": [], \"doc\": null, \"fill_alpha\": {\"value\": 0.85}, \"y\": {\"field\": \"index\"}, \"x\": {\"field\": \"updated_at\"}, \"id\": \"47cac537-1ccb-4043-b371-4996b774b3ce\", \"size\": {\"units\": \"screen\", \"field\": \"files\"}}, \"type\": \"Circle\", \"id\": \"47cac537-1ccb-4043-b371-4996b774b3ce\"}, {\"attributes\": {\"line_color\": {\"value\": \"#1f77b4\"}, \"line_alpha\": {\"value\": 0.1}, \"fill_color\": {\"value\": \"#1f77b4\"}, \"tags\": [], \"doc\": null, \"fill_alpha\": {\"value\": 0.1}, \"y\": {\"field\": \"index\"}, \"x\": {\"field\": \"updated_at\"}, \"id\": \"ff63f339-017c-4c0e-b483-b68d4f0f3f2a\", \"size\": {\"units\": \"screen\", \"field\": \"files\"}}, \"type\": \"Circle\", \"id\": \"ff63f339-017c-4c0e-b483-b68d4f0f3f2a\"}, {\"attributes\": {\"tags\": [], \"url\": \"https://gist.github.com/ICBacon/@id\", \"doc\": null, \"id\": \"becefd45-13fe-4df7-a083-68ed7442b0e6\"}, \"type\": \"OpenURL\", \"id\": \"becefd45-13fe-4df7-a083-68ed7442b0e6\"}, {\"attributes\": {\"geometries\": [], \"tags\": [], \"doc\": null, \"id\": \"764af3bd-7404-45e6-8ca6-3b48adb7cecd\"}, \"type\": \"ToolEvents\", \"id\": \"764af3bd-7404-45e6-8ca6-3b48adb7cecd\"}, {\"attributes\": {\"line_color\": {\"value\": \"#1f77b4\"}, \"line_alpha\": {\"value\": 0.1}, \"tags\": [], \"doc\": null, \"y1\": {\"field\": \"index\"}, \"y0\": {\"field\": \"index\"}, \"x0\": {\"field\": \"updated_at\"}, \"x1\": {\"field\": \"created_at\"}, \"id\": \"f25c3e1d-a384-4329-ac06-37f32559251b\"}, \"type\": \"Segment\", \"id\": \"f25c3e1d-a384-4329-ac06-37f32559251b\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"renderers\": [], \"callback\": null, \"names\": [], \"id\": \"10b489f9-d29d-4e2f-afa3-34367837fa75\"}, \"type\": \"DataRange1d\", \"id\": \"10b489f9-d29d-4e2f-afa3-34367837fa75\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"9ed51ade-17f9-41a1-8373-696e2fae2c53\"}, \"tags\": [], \"doc\": null, \"renderers\": [], \"names\": [], \"action\": {\"type\": \"OpenURL\", \"id\": \"becefd45-13fe-4df7-a083-68ed7442b0e6\"}, \"id\": \"34cb5195-b5cf-4838-bebd-736e1cd351b9\"}, \"type\": \"TapTool\", \"id\": \"34cb5195-b5cf-4838-bebd-736e1cd351b9\"}];\n",
" Bokeh.load_models(all_models);\n",
" var plots = [{'modeltype': 'Plot', 'elementid': '#e2da734d-f1c2-4194-870f-dfd09f3f366d', 'modelid': '9ed51ade-17f9-41a1-8373-696e2fae2c53'}];\n",
" for (idx in plots) {\n",
" \tvar plot = plots[idx];\n",
" \tvar model = Bokeh.Collections(plot.modeltype).get(plot.modelid);\n",
" \tBokeh.logger.info('Realizing plot:')\n",
" \tBokeh.logger.info(' - modeltype: ' + plot.modeltype);\n",
" \tBokeh.logger.info(' - modelid: ' + plot.modelid);\n",
" \tBokeh.logger.info(' - elementid: ' + plot.elementid);\n",
" \tvar view = new model.default_view({\n",
" \t\tmodel: model,\n",
" \t\tel: plot.elementid\n",
" \t});\n",
" \tBokeh.index[plot.modelid] = view;\n",
" }\n",
" });\n",
" </script>\n",
"<div class=\"plotdiv\" id=\"e2da734d-f1c2-4194-870f-dfd09f3f366d\"></div>\n",
"\n"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"p = figure(x_axis_type = \"datetime\", tools=TOOLS)\n",
"\n",
"p.segment(\n",
" x0 = 'updated_at',\n",
" x1 = 'created_at',\n",
" y0 = 'index',\n",
" y1 = 'index',\n",
" color = \"blue\",\n",
" line_alpha = 1,\n",
" source = source\n",
")\n",
"\n",
"p.circle(\n",
" x= 'updated_at',\n",
" y = 'index',\n",
" source = source,\n",
" size = 'files',\n",
" color = 'purple',\n",
" fill_alpha = 0.85\n",
")\n",
"\n",
"url = \"https://gist.github.com/ICBacon/@id\"\n",
"taptool = p.select(type = TapTool)\n",
"taptool.action = OpenURL(url = url)\n",
"\n",
"hover = p.select(dict(type = HoverTool))\n",
"\n",
"hover.tooltips = OrderedDict([\n",
" (\"index\", \"$index\"),\n",
" (\"description\", \"@short_description\"),\n",
" (\"created\", \"@created_to\"),\n",
" (\"updated\", \"@updated_to\"),\n",
"])\n",
"\n",
"show(p)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.8"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment