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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Update Carousel

Fabric Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors