Public
Edited
Sep 21, 2024
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
corpus
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
// tokenRegExp = /[\w]+/
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// queryTokens.map()
Insert cell
queryTokens = tokenize(textForm.query).map((t) => t.token)
Insert cell
Insert cell
Insert cell
d3.extent(termFrequencyData.matrixFlat.map((d) => d[textForm.score]))
Insert cell
d3
.color(d3.scaleSequential(d3.interpolateBlues).domain([0, 100])(50))
.formatHex()
Insert cell
Insert cell
neurips2023Papers
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
// searchResultsLunr = index.search(textForm.query).map((r) =>
// Object.assign(r, {
// text: corpus[parseInt(r.ref)].text,
// id: parseInt(r.ref)
// })
// )
Insert cell
// index = lunr(function () {
// this.ref("id");
// this.field("text");
// corpus.forEach(function (doc) {
// this.add(doc);
// }, this);
// })
Insert cell
// lunr = require("lunr")
Insert cell
import { Legend, Swatches } from "@d3/color-legend"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more