You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. You can test if papermill is loaded properly by checking the version of papermill.
56
+
4. You can test if Papermill is loaded properly by checking the version of Papermill.
57
57
58
58
```python
59
59
import papermill
@@ -64,7 +64,7 @@ The steps in this section all run within an Azure Data Studio notebook.
64
64
65
65
## Set up a parameterized notebook
66
66
67
-
**To open the below notebook example in Azure Data Studio, click [here](azuredatastudio://microsoft.notebook/open?url=https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/applications/azure-data-studio/parameterization.ipynb) and follow along.**
67
+
**To open the below notebook example in Azure Data Studio, visit [GitHub](https://github.com/microsoft/sql-server-samples/blob/master/samples/applications/azure-data-studio/parameterization.ipynb and follow along.**
68
68
69
69
1. Verify the **Kernel** is set to *Python3*.
70
70
@@ -109,25 +109,26 @@ Papermill can be executed two ways:
109
109
To execute a notebook using the CLI, enter the papermill command in the terminal with the input notebook, location for output notebook, and options.
110
110
111
111
> [!Note]
112
-
> Papermill Command Line Interface Documentation can be found [here](https://papermill.readthedocs.io/en/latest/usage-execute.html#execute-via-cli).
112
+
> Papermill Command Line Interface Documentation can be found [here](https://papermill.readthedocs.io/en/latest/usage-execute.html#execute-via-cli).
113
113
114
114
1. Execute Input Notebook with new parameters.
115
115
116
116
```shell
117
117
papermill Input.ipynb Output.ipynb -p x 10 -p y 20
118
118
```
119
119
120
-
This will execute the Input Notebook with new values for parameters **x** and **y**.
120
+
This executes the Input Notebook with new values for parameters **x** and **y**.
121
121
122
122
2. After execution view the new output parameterized notebook.
123
+
123
124
You can note that there's a new cell labeled **# Injected-Parameters** containing the new parameter values passed in via CLI.
In the URI query, use **&** to indicate a new parameter to be injected.
39
41
40
42
## URI Parameterization Example
41
43
42
-
**To open the below notebook example in Azure Data Studio, click [here](azuredatastudio://microsoft.notebook/open?url=https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/applications/azure-data-studio/parameterization.ipynb) and follow along.**
44
+
**To open the below notebook example in Azure Data Studio, visit [GitHub](https://github.com/VasuBhog/sql-server-samples/blob/master/samples/applications/azure-data-studio/parameterization.ipynb) and follow along.**
43
45
44
-
Below is the contents and structure of the notebook, you must use a notebook that has a cell tagged with parameters.
46
+
Below is the contents and structure of the notebook, you must use a notebook that has a cell tagged with parameters.
45
47
46
48
Tag a code cell in Azure Data Studio as **Parameters Cell**.
Copy file name to clipboardExpand all lines: docs/azure-data-studio/notebooks/run-with-parameters.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ ms.date: 06/14/2021
18
18
This article shows you how to create and run a parameterized notebook in Azure Data Studio with the python kernel.
19
19
20
20
> [!Note]
21
-
> Currently parameterization can be used with Python, PySpark, PowerShell, and .Net Interactive Kernels.
21
+
> Currently parameterization can be used with Python, PySpark, PowerShell, and .Net Interactive Kernels.
22
22
23
23
## Prerequisites
24
24
@@ -30,11 +30,11 @@ This article shows you how to create and run a parameterized notebook in Azure D
30
30
The `Run with Parameters` notebook action enables users to quickly set new parameters for their notebook by allowing the user to input new parameters from the UI.
31
31
32
32
> [!Note]
33
-
> The parameter cell has to be formatted with each new parameter on a new line.
33
+
> The parameter cell has to be formatted with each new parameter on a new line.
34
34
35
35
## Set up a notebook for parameterization in Azure Data Studio
36
36
37
-
**To open the below notebook example in Azure Data Studio, click [here](azuredatastudio://microsoft.notebook/open?url=https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/applications/azure-data-studio/parameterization.ipynb) and follow along.**
37
+
**To open the below notebook example in Azure Data Studio, visit [GitHub](https://github.com/microsoft/sql-server-samples/blob/master/samples/applications/azure-data-studio/parameterization.ipynb and follow along.**
38
38
39
39
The steps in this section all run within an Azure Data Studio notebook.
0 commit comments