library(reticulate) os <- import("os") os$chdir("data") os$getcwd()
# import numpy and specify no automatic Python to R conversion np <- import("numpy", convert = FALSE) # do some array manipulations with NumPy a <- np$array(c(1:4)) sum <- a$cumsum() # convert to R explicitly at the end py_to_r(sum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.