I am using the reticulate package to include R and Python code in an R Markdown file.
The context is: I am using lavaan for structural equation modeling in R and sympy in Python. I don't know of a good SEM module for Python (semopy seems underdeveloped at the moment) and sympy is much better than the R CAS packages that I am aware of (e.g. Ryacas).
The code chunks for both languages are formatted the same. It is not that hard to read over the chunks and figure our which language is being used, but I'd like to make it more obvious by having them formatted differently, possibly with a different color scheme or fonts. Is this possible and easily implemented?