---
title: "Comment by Frithjof Vassbø on \"How to Attach a Default Lakehouse to a Notebook in Fabric\" | Hashnode"
description: "Great blog! I'm wondering, is it possible to switch the default Lakehouse multiple times within a Notebook run? If I understand correctly, changing the default"
url: "https://hashnode.com/posts/how-to-attach-a-default-lakehouse-to-a-notebook-in-fabric/66a16c7f0c3c7317c41e7fdb/comment/66a221ae96271f659e5801a3"
---

[Discussion](https://hashnode.com/posts/how-to-attach-a-default-lakehouse-to-a-notebook-in-fabric/66a16c7f0c3c7317c41e7fdb)

Comment [How to Attach a Default Lakehouse to a Notebook in Fabric](https://hashnode.com/posts/how-to-attach-a-default-lakehouse-to-a-notebook-in-fabric/66a16c7f0c3c7317c41e7fdb)

[Frithjof Vassbø](https://hashnode.com/@frithjof)

[Jul 25, 2024](https://hashnode.com/posts/how-to-attach-a-default-lakehouse-to-a-notebook-in-fabric/66a16c7f0c3c7317c41e7fdb/comment/66a221ae96271f659e5801a3)

Great blog!

I'm wondering, is it possible to switch the default Lakehouse multiple times within a Notebook run?

If I understand correctly, changing the default Lakehouse by using the '%% configure' approach will only work properly if this is done in the first cell in the Notebook. I guess that means we can only set the default Lakehouse once in a Notebook run.

Some users want to be able to switch default Lakehouse programmatically multiple times within a Notebook run, in order to use Spark SQL on multiple Lakehouses within the same Notebook run.
