Skip to content

Commit 53dac59

Browse files
committed
reformat the urls in the article
1 parent 9f2894e commit 53dac59

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

docs/azure-data-studio/notebooks/parameterize-papermill.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ To execute a notebook using the CLI, enter the papermill command in the terminal
117117
papermill Input.ipynb Output.ipynb -p x 10 -p y 20
118118
```
119119

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**.
121121

122122
2. After execution view the new output parameterized notebook.
123+
123124
You can note that there's a new cell labeled **# Injected-Parameters** containing the new parameter values passed in via CLI.
124125

125126
:::image type="content" source="media/notebooks-parameterization/output-notebook.png" alt-text="Output Notebook":::

docs/azure-data-studio/notebooks/parameterize-uri.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,21 @@ This article shows you how to create and run a parameterized notebook in Azure D
3030
URI parameterization programmatically adds parameters to the query of the ADS URI to open the notebook in ADS with new parameters.
3131

3232
Azure Data Studio Notebook URI supports HTTPS/HTTP/FILE URI schema and follows the format:
33-
_azuredatastudio:\/\/microsoft.notebook\/open?url=_
33+
`_azuredatastudio:\/\/microsoft.notebook\/open?url=_`
3434

3535
The format to pass in parameters with the ADS Notebook URI is as follows:
36-
_azuredatastudio:\/\/microsoft.notebook\/open?url=LinkToNotebook_***?x=1&y=2***
36+
`_azuredatastudio:\/\/microsoft.notebook\/open?url=LinkToNotebook_***?x=1&y=2***`
3737

3838
In the URI query, use **&** to indicate a new parameter to be injected.
3939

4040
## URI Parameterization Example
4141

4242
**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.**
4343

44-
Below is the contents and structure of the notebook, you must use a notebook that has a cell tagged with parameters.
44+
Below is the contents and structure of the notebook, you must use a notebook that has a cell tagged with parameters.
4545

4646
Tag a code cell in Azure Data Studio as **Parameters Cell**.
47+
4748
:::image type="content" source="media/notebooks-parameterization/make-parameter-cell.png" alt-text="Parameter Cell Notebook":::
4849

4950
Below is the contents of the notebook:
@@ -67,15 +68,15 @@ Below is the contents and structure of the notebook, you must use a notebook tha
6768

6869
Below is the notebook URI for parameterizing the notebook with new x and y values:
6970

70-
[azuredatastudio://microsoft.notebook/open?url=https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/applications/azure-data-studio/parameterization.ipynb](azuredatastudio://microsoft.notebook/open?url=https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/applications/azure-data-studio/parameterization.ipynb)
71+
`_azuredatastudio://microsoft.notebook/open?url=https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/applications/azure-data-studio/parameterization.ipynb_**?x=10&y=20**`
7172

7273
:::image type="content" source="media/notebooks-parameterization/search-bar.png" alt-text="URI link in Search bar":::
7374

74-
When opening the link from the web browser, you will be prompted to open the notebook in Azure Data Studio. Select **Open Azure Data Studio**.
75+
When opening the link from the web browser, you're prompted to open the notebook in Azure Data Studio. Select **Open Azure Data Studio**.
7576

7677
:::image type="content" source="media/notebooks-parameterization/donwload-prompt.png" alt-text="Download Prompt":::
7778

78-
2. You will then be prompted to download and open the notebook with new parameters.
79+
2. Then you're prompted to download and open the notebook with new parameters.
7980

8081
Once you select **Yes**, view the new parameterized notebook and **run all cells** to see the new output.
8182

0 commit comments

Comments
 (0)