Redaguoti

Bendrinti naudojant


Create and manage Microsoft Fabric notebooks inside Visual Studio Code for the Web

Visual Studio Code for the Web provides a free, zero-install Microsoft Visual Studio Code experience running entirely in your browser, allowing you to quickly and safely browse source code repositories and make lightweight code changes. To get started, go to https://vscode.dev in your browser.

The Synapse VS Code extension can also be used in the VS Code for the Web experience. The extension supports the CRUD (create, read, update, and delete) notebook experience in Fabric. The changes from the VS Code for the Web experience are applied to the workspace immediately. The extension also supports running notebooks in the VS Code for the web experience.

Important

The Synapse VS Code Remote extension is currently in preview.

Install the Synapse VS Code extension for the Web

  1. Go to https://insider.vscode.dev from your browser.
  2. Select the Extensions icon in the left navigation bar.
  3. Search for Synapse and select the Synapse VS Code - Remotes extension
  4. click Install.

Screenshot that shows installation of Synapse VS Code extension web.

Open a notebook with the Synapse VS Code extension for the Web

You can open a notebook in the VS Code for the Web experience by clicking the Open in VS Code(Web) button on the notebook authoring page in the Fabric portal. After you select the button, a separate browser tab is opened with the VS Code for the web experience. If you haven't already installed the extension, it is automatically installed, and activated, and the notebook is opened.

Screenshot showing how to open notebook in VS Code for the Web.

Manage notebooks and notebook file system

The notebook tree node lists all of the notebook items in the current workspace. For each notebook item, you can perform the following actions:

  • Open a notebook
  • Delete a notebook
  • Add new resource file
  • Add new resource folder

You can also delete any existing file/folder in the notebook file system.

Screenshot of notebook tree node.

Run notebooks in the VS Code for the Web experience

You can run a notebook in the VS Code for the web experience by selecting the Run button in the notebook editor. Before you run the notebook, make sure to select the Synapse VS Code -Remote as the kernel. The kernel is selected in the top right corner of the notebook editor.

Screenshot showing how to run notebook in VS Code for the Web.