From the course: Implementing Data Engineering Solutions Using Microsoft Fabric (DP-700) Cert Prep by Microsoft Press

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Using parameters in notebooks

Using parameters in notebooks

Using Parameters in Notebooks Now when we're looking to use parameters in notebooks, we're looking to pass the values into a notebook when that notebook is being run to change the values within the notebook, just like we do with our pipelines. Now we don't start out with a parameter cell, we have to define one within our notebook. So for example, if I have a cell that is defining a variable such as a data source or a lake house ID to be used further down in my notebook, I can actually use the settings of that cell to toggle it into a parameter cell. Now it's going to show as a parameter cell, so I can toggle that parameter cell on or off. That enables me to pass the values in and it will override the values inside that notebook. Now when we're looking to pass values into parameters inside notebooks at runtime, we've got multiple methods. We can do that via code. Now using that magic command %run, we can specify a notebook that we wish to run with one or more parameters where we're…

Contents