cdsapi <- NULL
.onLoad <- function(libname, pkgname) {
reticulate::configure_environment(pkgname)
cdsapi <<- reticulate::import("cdsapi", delay_load = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.