Blogging with runnable Python in Rmarkdown files
I wondered if I could blog with runnable Python code chunks if I’m creating my Hugo content with .Rmarkdown files. It looks like I can with the reticulate package; see the vignette here.
install.packages('reticulate', repos="https://cloud.r-project.org") library(reticulate) I believe this allows you to actually run Python. Alternatively, if you just want to display Python code, just use a code fence, i.e. the Github-style code block that’s 3 backticks, new line, code, then three closing backticks on a new line, like so: