Edit

Share via


Overview of Copilot for Data Engineering and Data Science (preview)

Important

Copilot for Data Engineering and Data Science is in preview.

Copilot in Microsoft Fabric is your AI partner for turning data into insights faster, with less friction.

Available across Fabric workloads, each Copilot experience is tailored to the task at hand. This article focuses on the Data Science and Data Engineering notebook experience.

In notebooks, Copilot helps you move from data to working code without breaking your flow. It understands your notebook context, including attached Lakehouses, workspace tables and files, and loaded dataframes, to suggest relevant code, explain results, and troubleshoot issues so you can turn questions into trusted insights faster.

For information about Copilot in other workloads, see Overview of Copilot in Fabric and Power BI.

What you can accomplish with Copilot

Copilot supports your full notebook workflow, from exploration to optimization, so you can move from question to validated result without leaving your notebook.

When you open the Copilot chat pane, you can start with a suggested prompt or ask your own question in natural language.

With Copilot, you can:

  • Accelerate development with code generation and less repetitive setup.
  • Explore, validate, and prepare data by profiling tables, sampling data, and cleaning inconsistencies.
  • Resolve issues in context by understanding errors and applying suggested fixes.
  • Analyze and optimize notebooks by generating metrics, exploring trends, converting code, and documenting logic for collaboration.

If you want step-by-step usage instructions, prompt examples, and portal walkthroughs, see Use the Copilot chat pane.

For failure diagnostics and recovery workflows, see Diagnose notebook failures with Copilot.

How Copilot works

When you open a notebook, Copilot automatically understands:

  • The current workspace
  • The attached Lakehouse
  • Available schemas, tables, and files
  • The notebook's structure and existing code
  • The execution environment

You don't need to describe your setup. Copilot uses this context to generate relevant, environment-aware responses as your notebook evolves.

Because Copilot is schema-aware, you can ask:

  • "How many tables are in the lakehouse?"
  • "What are the columns of the table customers?"
  • "Create a dataframe from sales.csv."

Copilot generates code and explanations directly in the chat pane, aligned to your environment.

Work the way you prefer: chat pane and in-cell Copilot

Copilot integrates into notebooks in two complementary ways.

  • Chat pane: Best for multi-step workflows, building pipelines across cells, exploring datasets, and reviewing generated code with diff view.
  • In-cell Copilot: Best for focused improvements within a single cell, such as generating code, explaining logic (/explain), fixing errors (/fix), adding documentation (/comments), or optimizing performance (/optimize).

Both experiences share the same notebook context, so you can move seamlessly between broader workflow design and targeted refinement.

For end-to-end instructions and examples, see Use the Copilot chat pane. For details on slash commands and in-cell usage, see In-cell Copilot. For inline code completion, see Copilot inline code completion.

Responsible use of AI

Copilot is a productivity tool, not a replacement for human judgment. Always review AI-generated code, explanations, and suggestions before applying them to your notebook. Copilot might produce results that are inaccurate, incomplete, or based on outdated library syntax.

To support responsible use:

  • Review all output — Validate generated code and results against your data and expectations before running in production.
  • Control what Copilot runs — By default, Copilot asks for your approval before running cells or editing code. Keep this setting enabled so you can review each action before it executes. For details, see Approval settings.
  • Understand data handling — Customer data is temporarily stored and processed to detect harmful use of AI. For full details on data privacy, security, and retention, see Privacy, security, and responsible use of Copilot in notebooks.

Prerequisites

Before you can use Copilot in notebooks:

  • Confirm that the Users can use Copilot and other features powered by Azure OpenAI tenant setting is enabled. This setting is enabled by default, but your Fabric admin might have turned it off.
  • Ensure your workspace is on a supported capacity (F2 or higher, or P1 or higher).
  • If your capacity is outside the US or EU, ensure your admin enables more tenant settings for cross-geo data processing and storage.

For details on capacity requirements, region availability, required tenant settings, and data processing across geographic areas, see Overview of Copilot in Fabric and Power BI. For the full list of tenant settings, see Copilot tenant settings.

Limitations

  • Copilot features in the Data Science and Data Engineering experience are currently scoped to notebooks. Copilot can also read Power BI semantic models through semantic link integration.

  • If your tenant is configured with private link, the Copilot chat pane doesn't work. Inline code suggestions and quick actions might still work, but chat interactions fail to load.

  • Code generation with fast-moving or recently released libraries might include inaccuracies or fabrications.

  • AI-generated content might be inaccurate. Always review Copilot suggestions before applying them.