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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors