Published
Edited
Nov 4, 2020
Insert cell
md`# Pubmed test`
Insert cell
uris.map(await d3.json)
Insert cell
{
let pubmed_response = d3.json(uris[0]);
return pubmed_response.esearchresult.idlist[0]; // ok?!? This does not work
}
Insert cell
{
let pubmed_response = d3.json(uris[0]);
return pubmed_response; // this works too!
}
Insert cell
d3.json(uris[0]) // This works fine!
Insert cell
uris = [
"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&retmode=json&term=Neuroimaging%20Determinants%20of%20Poststroke%20Cognitive%20Performance+AND+Puy[author+-+first]+AND+Stroke[journal]",
"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&retmode=json&term=Poststroke%20dementia+AND+Leys[firs+-+author]+AND+The%20Lancet%20Neurology[journal]"
]
Insert cell
d3 = require("d3@v5")
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