map_method <- function(x, method, to_r){
map(x, function(x, method, to_r){
results <- x[[method]]
if(to_r)
results <- py_to_r(results)
return(results)
}, method = method, to_r = to_r)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.