Edit

Share via


Prepare your system for data science tutorials

Before you begin the data science end-to-end tutorial series, learn about prerequisites, how to add notebooks (.ipynb) to your workspace, and how to attach a lakehouse to those notebooks.

Prerequisites

Create a notebook

Each tutorial in the Get Started end-to-end series is available as a Jupyter notebook file in GitHub. Many additional tutorials are also available as samples in the Data Science workload. Use one of the following methods to access the tutorials:

  • Create a new notebook, then copy and paste the code from the tutorial.

  • Upload the notebook (.ipynb) from GitHub to your workspace:

    1. Download your notebook(s). Make sure to download the files by using the "Raw" file link in GitHub.

    2. In the Fabric web app, go to your workspace.

    3. In the workspace command bar, select Upload, then choose the downloaded notebook (.ipynb) file.

    4. When the upload completes, the notebooks are available in your workspace for use.

    5. If the uploaded notebook includes output, select the Edit menu, then select Clear all outputs.

      Screenshot shows the edit menu option to clear all outputs.

    Tip

    Don't see an option to upload a notebook (.ipynb) in your workspace?

    1. Use Create a new notebook, then copy and paste the code from the tutorial.
    2. Or, use the Open the sample notebook option in the Data Science workload (when available).
    3. If your organization has Git integration enabled, you can also bring notebooks from a connected repo.
  • Open the sample notebook (when available) in the Data Science workload:

    1. From the left pane, select Workloads.

    2. Select Data Science.

    3. From the Explore a sample card, select Select.

    4. Select the corresponding sample:

      • From the default End-to-end workflows (Python) tab, if the sample is for a Python tutorial.
      • From the End-to-end workflows (R) tab, if the sample is for an R tutorial.
      • From the Quick tutorials tab, if the sample is for a quick tutorial.

Attach a lakehouse to the notebooks

To demonstrate Fabric lakehouse features, many of the tutorials require attaching a default lakehouse to the notebooks. The following steps show how to add a lakehouse to a notebook in a Fabric-enabled workspace.

Note

Before executing each notebook, you need to perform these steps on that notebook.

  1. Open the notebook in the workspace.

  2. Select Add lakehouse in the left pane.

    Diagram of the process steps to attach a lakehouse to a notebook.

  3. Create a new lakehouse or use an existing lakehouse.

    1. To create a new lakehouse, select New. Give the lakehouse a name and select Create.
    2. To use an existing lakehouse, select Existing lakehouse to open the Data hub dialog box. Select the lakehouse you want to use and then select Add.
  4. Once a lakehouse is added, it's visible in the lakehouse pane and you can view tables and files stored in the lakehouse.

Next step