Thank mike i worked on this …
and if i use your code it’s seems to work
BUT
with this way i use the file that are on observable ?..
and i want the file that are on my server (where they are updated …)…
here is my architecture where the purple(“dynamic” file) and green(“static” file) are the file used by the 2 notes books some of those file are used by both notebook …
so the call of the file in the 2 main scripts become :
const fileAttachments = new Map([["prov.json",new URL("http://www.grottes-et-karsts-de-chine.org/npds/gkc_cache/prov.json",import.meta.url)],["karst.json",new URL("http://www.grottes-et-karsts-de-chine.org/npds/gkc_cache/karst.json",import.meta.url)],["exp_annee.csv",new URL("http://www.grottes-et-karsts-de-chine.org/npds/gkc_cache/exp_annee.csv",import.meta.url)]]);
const fileAttachments = new Map([["prov.json",new URL("http://www.grottes-et-karsts-de-chine.org/npds/gkc_cache/prov.json",import.meta.url)],["exp_pro.json",new URL("http://www.grottes-et-karsts-de-chine.org/npds/gkc_cache/exp_pro.json",import.meta.url)],["karst.json",new URL("http://www.grottes-et-karsts-de-chine.org/npds/gkc_cache/karst.json",import.meta.url)]]);
i can not understand why the error are differents sometimes one notebook sometime the other and sometime dead at d3 and sometime dead more far in the code (when parse the csv file ???)
zhmap_expro = RuntimeError: d3 could not be resolved
or sometime dataExp could not be resolved …
some more work for the new year…
i also notice that by this way (2 note book on the same page) i load two times 3djs and 2 times runtime.js and the commons json file … it may be not very efficient …?