Closed fkgruber closed 1 year ago
To use engines other than R
you will need to customize org-ravel-engines
.
You can do this by editing your init file, setting it as a file variable
(see the Emacs manual), or interactively by typing
C-h v org-ravel-engines RET
then clicking the customize
link, checking the box by Python
, and checking apply
or apply and save
.
After that the value of org-ravel-engines
should be
(("R") ("python" . "engine='python'"))
With that set, the Python code renders as
# python code
```{python}
#| echo: TRUE
#| eval: TRUE
#| results: 'markup'
#| message: FALSE
#| warning: FALSE
#| error: FALSE
#| cache: 2
#| fig.width: 10
#| fig.height: 10
import sys
print("testg")
```
perfect! thanks
Hi CCB, I tried the most recent version of ox-ravel and I tried to export the following orgmode file
however the export does not make the python code a code block:
Quarto supports python code so it would be great if python codes are also treated as blocks. FKG