#7 Microsoft Fabric: Create & work with notebooks in LakeHouse

It’s amazing. We can easily create a Fabric Notebook within the LakeHouse. We do not need to do any jobs for configuration for Spark, Scala, or Python to run the script. What you need to do is just drag & drop, and then let Fabric automatically generate codes for us.

Let’s try it now to create a notebook and run some queries from Lakehouse.

1. From your workspace, open your LakeHouse. E.g, My LakeHouse name is TestLH.

No alt text provided for this image

2. Under Explorer, select the table FactOnlinesales > click … > open in notebook > New notebook

No alt text provided for this image

3. Drag & Drop the table to the existing cell & the created notebook > then Run cell.

No alt text provided for this image

4. You can rename your notebook to easily understand your works inside the notebook by selecting the default name of the notebook on the top left corner as below.

No alt text provided for this image

5. To Open in VS Code and work with the notebooksfrom your local machine, select the button Open in VS Code from the Lakehouese editor.

No alt text provided for this image

6. You may need to install Extension “Synapse VS Code” if it is not available in your VS Code. Just follow the guidance to complete these steps.

No alt text provided for this image

7. You may confront the notification that you cannot install this time as there is no the release version. However, you can install the pre-release version for testing purposes.

No alt text provided for this image

8. Now, you can enjoy your notebook with your PySpark and SparkSQL.

No alt text provided for this image
Call Now