# Databricks: how to generate Data Docs without having great\_expectations.yml config file

**URL:** <https://discourse.greatexpectations.io/t/databricks-how-to-generate-data-docs-without-having-great-expectations-yml-config-file/305>\
**Category:** Archive\
**Created:** [August 10, 2020, 6:05pm UTC](https://discourse.greatexpectations.io/t/databricks-how-to-generate-data-docs-without-having-great-expectations-yml-config-file/305 "2020-08-10T18:05:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandra](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sandra](https://discourse.greatexpectations.io/u/Sandra)\
**Post date:** [August 10, 2020, 6:05pm UTC](https://discourse.greatexpectations.io/t/databricks-how-to-generate-data-docs-without-having-great-expectations-yml-config-file/305/1 "2020-08-10T18:05:59Z")

</div>

I was wondering how can I generate docs using `context.build_data_docs()` in a **databricks** notebook without having a `great_expectations.yml` file

---

<div class="post-metadata">

**Author:** ![eugene.mandel](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/eugene.mandel/32/22_2.png) [@eugene.mandel](https://discourse.greatexpectations.io/u/eugene.mandel)\
**Post date:** [August 10, 2020, 6:13pm UTC](https://discourse.greatexpectations.io/t/databricks-how-to-generate-data-docs-without-having-great-expectations-yml-config-file/305/2 "2020-08-10T18:13:27Z")

</div>

This how-to guide shows a pattern of initializing a Data Context without a configuration file:  
[https://docs.greatexpectations.io/en/latest/guides/how\_to\_guides/configuring\_data\_contexts/how\_to\_instantiate\_a\_data\_context\_on\_an\_emr\_spark\_cluster.html](https://docs.greatexpectations.io/en/latest/guides/how_to_guides/configuring_data_contexts/how_to_instantiate_a_data_context_on_an_emr_spark_cluster.html)

This specific guide is about EMR, but you can use the same code snippet on Databricks.

Once you have your Data Context in the notebook, you can call

> context.build\_data\_docs()

to build Data Docs.

---

<div class="post-metadata">

**Author:** ![Sandra](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sandra](https://discourse.greatexpectations.io/u/Sandra)\
**Post date:** [August 13, 2020, 8:41pm UTC](https://discourse.greatexpectations.io/t/databricks-how-to-generate-data-docs-without-having-great-expectations-yml-config-file/305/3 "2020-08-13T20:41:35Z")

</div>

putting here new link because above is no longer working.  
[https://docs.greatexpectations.io/en/latest/guides/how\_to\_guides/configuring\_data\_contexts/how\_to\_instantiate\_a\_data\_context\_on\_an\_emr\_spark\_cluster.html](https://docs.greatexpectations.io/en/latest/guides/how_to_guides/configuring_data_contexts/how_to_instantiate_a_data_context_on_an_emr_spark_cluster.html)
