Published
Edited
Jul 18, 2022
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
schema = await FileAttachment("data_structure@1.json").json()
Insert cell
properties = {
var properties = Object.values(
schema.definitions["fr-esr-parcoursup_2020_records"].properties.fields
.properties
);
const keys = Object.keys(
schema.definitions["fr-esr-parcoursup_2020_records"].properties.fields
.properties
);
properties.forEach((d, i) => {
d.key = keys[i];
});

return properties;
}
Insert cell
viewof properties_searched = Search(properties)
Insert cell
viewof properties_table = Table(properties_searched, {
columns: ["key", "title", "type"],
layout: "auto"
})
Insert cell
Insert cell
data = FileAttachment("fr-esr-parcoursup_2020@1.json").json()

// We load the dataset as available on 2022.07.18 to prevent breaking that notebook collection in the case the API definition changes.

// d3.json(
// `https://data.enseignementsup-recherche.gouv.fr/api/v2/catalog/datasets/fr-esr-parcoursup_2020/exports/json?timezone=UTC&pretty=false`
// )
Insert cell
viewof data_table = Table(data)
Insert cell
Insert cell
import { header } from "@aymericbr/header-for-sub-notebook-to-redirect-to-its-parent"
Insert cell
d3 = require("d3")
Insert cell
import { Table, Search, Select, Range } from "@observablehq/inputs"
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