I tried to run the code at supporting-blog-content/building-a-recipe-search-with-elasticsearch in the elasticsearch-labs, and I found that "config.yml" file is missing. A dummy or template file should be fine for making the code complete.
https://github.com/elastic/elasticsearch-labs/blob/main/supporting-blog-content/building-a-recipe-search-with-elasticsearch/elasticsearch_connection.py