# Getting error running GX in MS Fabric notebook

**URL:** <https://discourse.greatexpectations.io/t/getting-error-running-gx-in-ms-fabric-notebook/1870>\
**Category:** GX Core Support\
**Created:** [September 3, 2024, 8:41am UTC](https://discourse.greatexpectations.io/t/getting-error-running-gx-in-ms-fabric-notebook/1870 "2024-09-03T08:41:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieter.human](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/pieter.human/32/330_2.png) [@pieter.human](https://discourse.greatexpectations.io/u/pieter.human)\
**Post date:** [September 3, 2024, 8:41am UTC](https://discourse.greatexpectations.io/t/getting-error-running-gx-in-ms-fabric-notebook/1870/1 "2024-09-03T08:41:47Z")

</div>

#manually install  
!pip install great\_expectations==1.0.0

#running this code  
import great\_expectations as gx

# Create an in-memory (ephemeral) Great Expectations context

context = gx.get\_context()

# Add the expectation suite to the context using the correct method

context.add\_or\_update\_expectation\_suite(expectation\_suite)

#Getting this error  
`Created temporary directory '/tmp/tmpo7tbt48o' for ephemeral docs site` `---------------------------------------------------------------------------  
AttributeError Traceback (most recent call last)  
Cell In[82], line 7  
4 context = gx.get\_context()  
6 # Add the expectation suite to the context using the correct method  
----\> 7 context.add\_or\_update\_expectation\_suite(expectation\_suite)

AttributeError: ‘EphemeralDataContext’ object has no attribute ‘add\_or\_update\_expectation\_suite’`

Can someone please assist…

---

<div class="post-metadata">

**Author:** ![adeola](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@adeola](https://discourse.greatexpectations.io/u/adeola)\
**Post date:** [September 5, 2024, 4:08pm UTC](https://discourse.greatexpectations.io/t/getting-error-running-gx-in-ms-fabric-notebook/1870/2 "2024-09-05T16:08:22Z")

</div>

hello @pieter.human, Welcome to our community!

Because Microsoft fabric is not a fluent supported data source, it was not initially updated for 1.0. However we do have the fix for this that will land with todays release.

---

<div class="post-metadata">

**Author:** ![Deb](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Deb](https://discourse.greatexpectations.io/u/Deb)\
**Post date:** [September 10, 2024, 7:05am UTC](https://discourse.greatexpectations.io/t/getting-error-running-gx-in-ms-fabric-notebook/1870/3 "2024-09-10T07:05:16Z")

</div>

Hi @adeola ,  
Is the issue resolved in 1.0.2 version ? I am seeing that the code is in bits and pieces in your portal. There is no proper end-to-end template notebook which can be used with little modifications in a lakehouse production environment.  
Question: After the checkpoint gets executed , how to read the results to a pyspark dataframe?

---

<div class="post-metadata">

**Author:** ![adeola](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@adeola](https://discourse.greatexpectations.io/u/adeola)\
**Post date:** [September 19, 2024, 8:00pm UTC](https://discourse.greatexpectations.io/t/getting-error-running-gx-in-ms-fabric-notebook/1870/4 "2024-09-19T20:00:40Z")

</div>

@pieter.human @Deb we don’t have any new documentation available for connecting with MS Fabric as this still isn’t supported as a fluent data source, however, some errors can be due to not using our updated methods for example: `context.suites.add` is how you would now add an expectation suite.
