context("ipyToJson")
test_that("ipyToJson takes a JSON structure and converts to a notebook like list",{
file <- "ipyOut.ipynb"
file_path <- file.path(paste0("data/", file))
json <- jsonlite::read_json(file_path)
notebook <- ipyToJson(json, "ipynbOut.ipynb")
expect_equal(class(notebook), "list")
expect_equal(names(notebook), c("description", "files"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.