Getting error running GX in MS Fabric notebook

#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…

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.

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?

@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.