A version of knitr::spin() which functions on languages other than R. Now one can spin() a python/shell/R script to a .Rmd, and compile outputs from there.
You can install the development version of xspin like so:
remotes::install("kdm9/xspin")
# "spin" script to notebook
xspin::xspin(input="script.sh", output="script.Rmd")
# a one-stop-shop: xspin() followed by rmarkdown::render().
xspin::xweave(input="script.sh")
See the test py/sh files for example inputs and expected Rmd outputs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.