I am trying to use multiple src blocks to explain a yaml config file usage in python. Below is my org file,
#+name: config.yaml
#+begin_src yaml
name: john
why: check
# below is a dict example
# see it allows comments too
full_name:
first_name: john
last_name: smith
#+end_src
Now, let us load this into a python script
#+begin_src python :var input=config.yaml
import yaml
with open(input, 'r') as f:
cfg = yaml.load(f, Loader=yaml.FullLoader)
print(cfg)
#+end_src
#+RESULTS:
But when I do C-c C-c
, I see No org-babel-execute function for yaml!
. Can anyone help me identify the error and how to fix it?
Environment: macOs, doom emacs