Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Anonymous

Variable Library Support in Notebook (Generally Available)

This release brings consistent, secure, and scalable configuration management directly into notebooks—streamlining environment-aware development and CI/CD workflows without hardcoding.

Why it Matters

As projects grow, managing environment-specific settings can become complex. With Variable Library support in notebooks, you can:

  • Centralize configuration management for notebooks without hardcoding values.
  • Enable dynamic parameterization for Spark settings, lakehouse bindings, and compute configurations.
  • Simplify CI/CD pipelines by using variables across environments and stages.

Key Highlights

  • NotebookUtils Integration - Access variables programmatically in your notebook code using the NotebookUtils Variable library utilities APIs, run the notebookutils.variableLibrary.help() to get more detailed usage.
  • Service Principal (SPN) support - SPN authentication is now available for Variable Library, enabling secure, automated processes in enterprise CI/CD pipelines and notebook activity pipelines.
  • Use %%configure to dynamically assign runtime settings - Combine Variable Library with %%configure to bind environment-specific runtime settings in the notebook, such as the default lakehouse, without manual edits.

The following is an example of how to use Variable Library in notebook.

Variable_Library_Support_in_Notebook_Generally_AvailableVariable_Library_Support_in_Notebook_Generally_Available

Define variables in Variable library

Variable_Library_Support_in_Notebook_Generally_AvailableVariable_Library_Support_in_Notebook_Generally_Available

Use Variable library in notebook

Resources