##// END OF EJS Templates
use new css with old nbconvert html
use new css with old nbconvert html

File last commit:

r9595:c56ac074
r9673:1ce1776b
Show More
data_geeks_team_calendar.orig.md
69 lines | 4.3 KiB | text/x-minidsrc | MarkdownLexer
/ tests / ipynbref / data_geeks_team_calendar.orig.md
#! /usr/bin/env python
'''
github_team_calendar.py
Python program to scrape friends github to build team calendar for github
'''

import json  
import requests  
import pandas as pd

def line\_draw\_target(target):
github\_url = '<https://github.com/users/>%s/contributions\_calendar\_data'
r = requests.get(github\_url % target)
data = json.loads(r.text)
dates, contributions = zip(\*data)
ts = pd.Series(contributions, index=dates)  
plt.plot(ts)  
target = "mikedewar"
line_draw_target(target)

target = "drewconway"
line_draw_target(target)

target = "hmason"
line_draw_target(target)

target = "mbostock"
line_draw_target(target)

target = "amueller"
line_draw_target(target)