Published
Edited
May 16, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
url3 = "https://code-api.app.cloud.gov/api/repos?from=1999&api_key=90LWafgJ8bcxpCNHxkhA3jcxbG8TQKlQates3tJ9&size=10000"
Insert cell
url4 = "https://code-api.app.cloud.gov/api/repos?from=2999&api_key=90LWafgJ8bcxpCNHxkhA3jcxbG8TQKlQates3tJ9&size=10000"
Insert cell
url5 = "https://code-api.app.cloud.gov/api/repos?from=3999&api_key=90LWafgJ8bcxpCNHxkhA3jcxbG8TQKlQates3tJ9&size=10000"
Insert cell
url6 = "https://code-api.app.cloud.gov/api/repos?from=4999&api_key=90LWafgJ8bcxpCNHxkhA3jcxbG8TQKlQates3tJ9&size=10000"
Insert cell
url7 = "https://code-api.app.cloud.gov/api/repos?from=5999&api_key=90LWafgJ8bcxpCNHxkhA3jcxbG8TQKlQates3tJ9&size=10000"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
repos_3 = fetch(url3).then(response => response.json()).then(data => data.repos)
Insert cell
repos_4 = fetch(url4).then(response => response.json()).then(data => data.repos)
Insert cell
repos_5 = fetch(url5).then(response => response.json()).then(data => data.repos)
Insert cell
repos_6 = fetch(url6).then(response => response.json()).then(data => data.repos)
Insert cell
repos_7 = fetch(url7).then(response => response.json()).then(data => data.repos)
Insert cell
Insert cell
repos =repos_1.concat(repos_2).concat(repos_3).concat(repos_4).concat(repos_5).concat(repos_6).concat(repos_7)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
all_tags_flat = all_tags.flat([2])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data_and_title = limitTagsByCount(all_data,min_tag_counts,max_tag_counts)
Insert cell
data_and_title2 = data_and_title["children"]
Insert cell
data = data_normalized.slice(-6, -1)
Insert cell
Insert cell
md `crunching numbers just on description field`
Insert cell
Insert cell
(repos[0]['description'].match(/\s/g) || []).length
Insert cell
Insert cell
ReposOnlyWLongDescriptions = getReposOnlyWLongDescriptions(repos,35,agency)
Insert cell
agency = 'General Services Administration'
Insert cell
Insert cell
Insert cell
import {printTable} from '@uwdata/data-utilities'
Insert cell
Insert cell
import {select} from "@jashkenas/inputs"
Insert cell
import {slider} from "@jashkenas/inputs"
Insert cell
import {form} from "@mbostock/form-input"
Insert cell
vegalite = require("@observablehq/vega-lite@0.1")
Insert cell
Insert cell
Insert cell
d3 = require("d3@5")
Insert cell
import {serialize} from "@palewire/saving-json"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more