I am infuriatingly close. I am using RCall
to generate a beautiful table in a standalone HTML file:
using RDatasets
using RCall
x = dataset("datasets", "mtcars");
@rput x;
R"
library(DT)
htmlwidgets::saveWidget(x %>% DT::datatable(.), 'result.html')
"
Thus, a more refined version of my question is “In ipynb
, does anyone know how I can get a markdown cell or a Julia cell to display this HTML file?”
WebIO
is out, I get the same thing from before in the books, I just recreate it myself:
using WebIO
htmlString = read("result.html", String)
Scope(dom=node(:p, htmlString))
Looks like I should ask the WebIO
folks about this.
At least now I can take the partial victory of knowing I can likely get this to work by switching back to Rmd
where I’d have cells-by-language or switch to Python where I’d have magics instead of calls from a library.
I might not be able to escape to Julia but I do now know I can at least escape to Python lol.