use_greta_conda_env <- function() {
tryCatch(
expr = reticulate::use_condaenv("greta-env-tf2", required = TRUE),
error = function(e) NULL
)
}
using_greta_conda_env <- function() {
config <- reticulate::py_discover_config()
grepl("greta-env-tf2", config$python)
}
have_greta_conda_env <- function(){
tryCatch(
expr = "greta-env-tf2" %in% reticulate::conda_list()$name,
error = function(e) FALSE
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.