Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
DebbieE
Community Champion
Community Champion

Fabric Notebook. getting a message that the current session is using the previous Default lakehouse

I can't get rid of this message when I go to my notebook.

 

The Delta lake it goes to has been deleted.

I can see the current one in the list but its greyed out so I cant use it. And every time I start spark I get this message. Even though the code works (Up to creating the PARQUET file from the data frame I have created) can anyone tell me how to resolve this because I have been trying all mroning

 

NotebookOpeningOnnotdefaultIssue.png

1 ACCEPTED SOLUTION
Expiscornovus
Resolver III
Resolver III

Hi @DebbieE,

 

You can use the %%configure magic to set a different lakehouse as the default for your Spark session

https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#spark-session-conf...

 

Below is an example

 

%%configure
{
    "defaultLakehouse": {  
        "name": "FourthLakehouse"
    }
}

 

defaultlakehouse_notebook.png

 

View solution in original post

3 REPLIES 3
DebbieE
Community Champion
Community Champion

Fantastic. than worked. Thank you

Hi @DebbieE 

 

Glad to know that your query got answered.

Please continue using Fabric Community on your further queries.

 

Thanks.

Expiscornovus
Resolver III
Resolver III

Hi @DebbieE,

 

You can use the %%configure magic to set a different lakehouse as the default for your Spark session

https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#spark-session-conf...

 

Below is an example

 

%%configure
{
    "defaultLakehouse": {  
        "name": "FourthLakehouse"
    }
}

 

defaultlakehouse_notebook.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Expanding the Synapse Forums

New forum boards available in Synapse

Ask questions in Data Engineering, Data Science, Data Warehouse and General Discussion.

MayFabricCarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

Top Solution Authors