##// END OF EJS Templates
Removed "profiles"... Templates that are shipped with nbconvert by default should...
Removed "profiles"... Templates that are shipped with nbconvert by default should have settings built into exporter.py class. If the user wants to add a new template and use profile setting with it, the "profile" (config file) should be specified via the commandline when calling the exporter.

File last commit:

r10386:6416b524
r10435:896aaed3
Show More
data_geeks_team_calendar.orig.ipynb
137 lines | 68.2 KiB | text/plain | TextLexer
/ nbconvert1 / tests / ipynbref / data_geeks_team_calendar.orig.ipynb
In [1]:
#! /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)
In [2]:
target = "mikedewar"
line_draw_target(target)
        
No description has been provided for this image
In [3]:
target = "drewconway"
line_draw_target(target)
No description has been provided for this image
In [4]:
target = "hmason"
line_draw_target(target)
No description has been provided for this image
In [5]:
target = "mbostock"
line_draw_target(target)
No description has been provided for this image
In [6]:
target = "amueller"
line_draw_target(target)
No description has been provided for this image
In [ ]: