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

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