# Not being able to create data context in databricks

**URL:** <https://discourse.greatexpectations.io/t/not-being-able-to-create-data-context-in-databricks/1523>\
**Category:** GX Core Support\
**Created:** [November 27, 2023, 4:18pm UTC](https://discourse.greatexpectations.io/t/not-being-able-to-create-data-context-in-databricks/1523 "2023-11-27T16:18:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddua](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@ddua](https://discourse.greatexpectations.io/u/ddua)\
**Post date:** [November 27, 2023, 4:18pm UTC](https://discourse.greatexpectations.io/t/not-being-able-to-create-data-context-in-databricks/1523/1 "2023-11-27T16:18:56Z")

</div>

Because of data context not being created we are not able to use custom check feature and data docs for visualization.

Error: No gx directory was found here!  
- Please check that you are in the correct directory or have specified the correct directory.

This is what the error says. However, we have the directory established within data bricks.

---

<div class="post-metadata">

**Author:** ![HaebichanGX](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/haebichangx/32/211_2.png) [@HaebichanGX](https://discourse.greatexpectations.io/u/HaebichanGX)\
**Post date:** [November 27, 2023, 7:18pm UTC](https://discourse.greatexpectations.io/t/not-being-able-to-create-data-context-in-databricks/1523/2 "2023-11-27T19:18:28Z")

</div>

Hi @ddua what’s your code for creating data context? Are you running

```auto
import great_expectations as gx
context = gx.get_context()

```
