Data Analytics
  • All of Microsoft
  • Python
  • My Role
    • All in My Role
    • Data Analytics
  • Focus
    • All in Focus
    • Microsoft Ignite 2026
    • Microsoft Fabric
    • What's Hot
    • M365 Release
  • Security & Identity
Timespan
explore our new search
Azure Databricks: five tips for notebooks, data and Genie
Azure Analytics

Azure Databricks: five tips for notebooks, data and Genie

by HubSite 365 about Pragmatic Works

Azure Databricks users can browse data in place, explain code with Genie, apply reusable catalog policies and return to recent work.

Key insights

  • Catalog and workspace buttons let you browse data or open another item without leaving a notebook or SQL query.
  • In Genie, use /explain followed by a cell reference to ask for an explanation of notebook code.
  • A catalog ABAC policy can apply masking to columns that carry a specified tag, such as SSN.
  • Recents helps you return to notebooks, queries, dashboards and other workspace items.
  • Genie agent answers depend on sound data and business context, including the meaning of domain-specific terms.

Azure Databricks offers quick ways to browse workspace assets, understand code, apply reusable data policies and return to recent work. These tips are useful for data engineers, analysts and other users working in notebooks, SQL queries or Genie. Pragmatic Works demonstrates the workflows in a YouTube video, including examples of catalog policies and Genie code explanations.

What's new

These are practical features and workflows in the Databricks workspace, rather than a single new product announcement. The catalog and workspace buttons give users a way to explore data or open another workspace item without navigating away from the current notebook or SQL query. That can help when you need to check a catalog name while working with a query.

Genie’s command can describe code in a notebook cell. The demonstration uses it to inspect a cell that reads a table, and suggests asking Genie about alternative ways to perform the same task. This can help people who are learning SQL or PySpark, as well as developers trying to understand code written by someone else.

Catalog policies provide another workflow: an ABAC policy can apply row- or column-level controls when tables or columns meet defined criteria. In the example, a tag identifies Social Security number columns, and a policy masks columns carrying that tag. Recents serves a different purpose, letting users return to items they opened earlier, including notebooks, queries and dashboards.

Who it is for and what you need

Workspace navigation shortcuts are useful to anyone switching among data assets and notebooks or queries. The code explanation workflow is relevant to developers, analysts and learners working with SQL or PySpark. Genie can help explain unfamiliar code, but users still need enough understanding to assess whether the explanation and any suggested alternative fit their task.

Catalog ABAC policies are aimed at teams that want to apply security rules across matching data assets. The example depends on tagging the relevant columns consistently: the policy can act on columns identified by a tag, so newly added data needs the appropriate tag to receive the same treatment. For Genie agents, the practical starting points are good-quality data and business context that explains terminology and how the organization uses it.

The demonstration says the tips can also apply when using Databricks on AWS or Google Cloud. It does not give a license requirement or a specific rollout stage for these workflows, so the useful starting point is the relevant Databricks workspace and the feature or asset being used.

How it works

  1. Browse from where you are working. In a notebook or SQL query, select the catalog button to browse catalog data. Use the folder button to open workspace items without first leaving the current page.
  2. Ask Genie to explain a cell. Open Genie from the notebook interface, enter , add a space and identify the cell to explain, such as “explain cell number 2.” You can also ask whether another approach would accomplish the same task.
  3. Set up a reusable catalog policy. Open a catalog and select its Policies tab, then choose New policy to create an ABAC policy. Define the intended row- or column-level behavior and the criteria it should match. For masking, tag the relevant columns, such as with “SSN,” and configure the policy to apply to columns carrying that tag.
  4. Return to earlier work. Select Recents and find the notebook, query, dashboard or other item you want to reopen. This is useful when you move between workspace areas and want to pick up where you left off.
  5. Prepare Genie agents with context. Start with quality data and a sound dimensional model, then provide relevant business context. Explain domain-specific terms and synonyms so Genie can interpret both the data and the language people use to ask questions.

The five tips address different points in day-to-day work: finding assets, interpreting code, reusing governance logic, navigating back to tasks and improving the context available to AI. They can be considered separately; using one does not depend on adopting all the others.

Limitations and alternatives

An ABAC policy does not remove the need to identify the data it should govern. In the Social Security number example, columns must carry the matching tag for the policy to apply. Teams should consider how they will tag relevant columns, including those added later, and check that the policy criteria match their intended scope.

Genie explanations and agent answers should be treated in the context of the code and data they use. The demonstrated guidance emphasizes data quality, an accurate dimensional model and business context. A model may understand numbers but miss the organization’s jargon if nobody explains what those terms mean. Recents is a navigation aid, while catalog and workspace buttons provide direct browsing from the current work area; users can choose whichever route suits the task.

Sources

Frequently asked questions

How do I use Genie to explain code in Azure Databricks?

Open Genie from the notebook, enter /explain followed by a space, and identify the cell you want explained. You can also ask Genie whether another approach could accomplish the same task.

How can an ABAC policy mask columns in Databricks?

Create a policy from a catalog’s Policies tab and configure it to apply masking to columns that meet the policy criteria. For the example approach, tag Social Security number columns with a label such as SSN and have the policy match that tag.

How do I return to a notebook or query I was using in Databricks?

Open Recents and select the notebook, query, dashboard or other workspace item you want to revisit.

What context should I give a Databricks Genie agent?

Use quality data and a sound dimensional model, then provide business context such as the meaning of domain-specific terms and synonyms.