Access parameter defined in metadata with python knitr block #4688
-
I see that there are ways to access the parameter list that you may define in the metadata while using knitr, but I don't see the way I'd do this if I am using python. Say I have a yaml section with the following
And I want to access that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For using parameters with Jupyter document, the syntax is different and params are not defined in YAML If by "python knitr block", you mean a ---
title: Title of project
params:
windows: true
reproduce: false
---
```{r}
params
```
```{python}
r.params
``` Hope it helps |
Beta Was this translation helpful? Give feedback.
For using parameters with Jupyter document, the syntax is different and params are not defined in YAML
See https://quarto.org/docs/computations/parameters.html#jupyter
If by "python knitr block", you mean a
python
chunk in a Knitr document (which some R chunks), then you need to use reticulate feature to access R from PythonHope it helps