Published
Edited
Dec 28, 2020
2 stars
Insert cell
Insert cell
Insert cell
octokit = import("https://cdn.skypack.dev/@octokit/rest").then(
d =>
new d.Octokit({
// Here is where you would pass authentication data for private repositories
// auth: 'my secret token"
//
// or better, using Observable's Secret API
// auth: Secret("github")
})
)
Insert cell
Insert cell
// Request the API - see https://docs.github.com/en/free-pro-team@latest/rest/reference/repos
filesByName = octokit.repos
.getContent({
owner: 'CSSEGISandData',
repo: 'COVID-19',
path: 'csse_covid_19_data/csse_covid_19_daily_reports_us'
})
.then(d => d3.index(d.data, c => c.name))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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