Skip to content

Commit 4611e9c

Browse files
committed
edit pass: azure-synapse-analytics-code-artifacts
1 parent 8df2ef6 commit 4611e9c

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

articles/synapse-analytics/spark/apache-spark-development-using-notebooks.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This article describes how to use notebooks in Synapse Studio.
2626

2727
## Create a notebook
2828

29-
You can create a new notebook or import an existing notebook to a Synapse workspace from **Object Explorer**. Select **Develop** > **Notebooks**, and then select **New notebook** or **Import**. Synapse notebooks recognize standard Jupyter Notebook IPYNB files.
29+
You can create a new notebook or import an existing notebook to a Synapse workspace from **Object Explorer**. Select **Develop**, right-click **Notebooks**, and then select **New notebook** or **Import**. Synapse notebooks recognize standard Jupyter Notebook IPYNB files.
3030

3131
![Screenshot of selections for creating or importing a notebook.](./media/apache-spark-development-using-notebooks/synapse-create-import-notebook-2.png)
3232

@@ -86,7 +86,7 @@ You can use multiple languages in one notebook by specifying the correct languag
8686
|---|------|-----|
8787
|`%%pyspark`| Python | Run a Python query against `SparkContext`. |
8888
|`%%spark`| Scala | Run a Scala query against `SparkContext`. |
89-
|`%%sql`| SparkSQL | Run a Spark SQL query against `SparkContext`. |
89+
|`%%sql`| Spark SQL | Run a Spark SQL query against `SparkContext`. |
9090
|`%%csharp` | .NET for Spark C# | Run a .NET for Spark C# query against `SparkContext`. |
9191
|`%%sparkr` | R | Run an R query against `SparkContext`. |
9292

@@ -122,15 +122,15 @@ You can't reference data or variables directly across different languages in a S
122122

123123
### <a name = "ide-style-intellisense"></a>Use IDE-style IntelliSense
124124

125-
Synapse notebooks are integrated with the Monaco editor to bring IDE-style IntelliSense to the cell editor. The features of syntax highlight, error marker, and automatic code completion help you to write code and identify issues faster.
125+
Synapse notebooks are integrated with the Monaco editor to bring IDE-style IntelliSense to the cell editor. The features of syntax highlight, error marker, and automatic code completion help you write code and identify issues faster.
126126

127127
The IntelliSense features are at different levels of maturity for different languages. Use the following table to see what's supported.
128128

129129
|Languages| Syntax highlight | Syntax error marker | Syntax code completion | Variable code completion| System function code completion| User function code completion| Smart indent | Code folding|
130130
|--|--|--|--|--|--|--|--|--|
131131
|PySpark (Python)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
132-
|Spark (Scala)|Yes|Yes|Yes|Yes|Yes|Yes|-|Yes|
133-
|SparkSQL|Yes|Yes|Yes|Yes|Yes|-|-|-|
132+
|Spark (Scala)|Yes|Yes|Yes|Yes|Yes|Yes|No|Yes|
133+
|Spark SQL|Yes|Yes|Yes|Yes|Yes|No|No|No|
134134
|.NET for Spark (C#)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
135135

136136
An active Spark session is required to benefit from variable code completion, system function code completion, and user function code completion for .NET for Spark (C#).
@@ -145,7 +145,7 @@ Snippets appear in [shortcut keys of IDE-style IntelliSense](#ide-style-intellis
145145

146146
### <a name = "format-text-cell-with-toolbar-buttons"></a>Format text cells by using toolbar buttons
147147

148-
You can use the format buttons on the text cell toolbar to do common markdown actions. These actions include making text bold, making text italic, creating paragraphs and headings through a dropdown menu, inserting code, inserting an unordered list, inserting an ordered list, inserting a hyperlink, and inserting an image from a URL.
148+
You can use the format buttons on the text cell toolbar to do common Markdown actions. These actions include making text bold, making text italic, creating paragraphs and headings through a dropdown menu, inserting code, inserting an unordered list, inserting an ordered list, inserting a hyperlink, and inserting an image from a URL.
149149

150150
![Screenshot of the text cell toolbar in a Synapse notebook.](./media/apache-spark-development-using-notebooks/synapse-text-cell-toolbar-preview.png)
151151

@@ -157,7 +157,7 @@ To revoke the most recent cell operations, select the **Undo** or **Redo** butto
157157

158158
Supported cell operations include:
159159

160-
* Insert or delete a cell: You can revoke delete operations by selecting **Undo**. This action keeps the text content along with the cell.
160+
* Insert or delete a cell. You can revoke delete operations by selecting **Undo**. This action keeps the text content along with the cell.
161161
* Reorder cells.
162162
* Turn a parameter cell on or off.
163163
* Convert between a code cell and a Markdown cell.
@@ -207,7 +207,7 @@ To collapse the current cell's output, select the **More commands** ellipsis (**
207207

208208
### <a name = "notebook-outline"></a>Use a notebook outline
209209

210-
The outline (table of contents) presents the first markdown header of any Markdown cell in a sidebar window for quick navigation. The outline sidebar is resizable and collapsible to fit the screen in the best way possible. To open or hide the sidebar, select the **Outline** button on the notebook command bar.
210+
The outline (table of contents) presents the first Markdown header of any Markdown cell in a sidebar window for quick navigation. The outline sidebar is resizable and collapsible to fit the screen in the best way possible. To open or hide the sidebar, select the **Outline** button on the notebook command bar.
211211

212212
:::image type="content" source="./media/apache-spark-development-using-notebooks/synapse-azure-notebook-outline.png" alt-text="Screenshot of the outline sidebar in a Synapse notebook." link="./media/apache-spark-development-using-notebooks/synapse-azure-notebook-outline.png":::
213213

@@ -256,12 +256,12 @@ Here's an example:
256256

257257
The notebook reference works in both interactive mode and pipelines.
258258

259-
The `run` magic command has these limitations:
259+
The `%run` magic command has these limitations:
260260

261261
* The command supports nested calls but not recursive calls.
262262
* The command supports passing an absolute path or notebook name only as a parameter. It doesn't support relative paths.
263263
* The command currently supports only four parameter value types: `int`, `float`, `bool`, and `string`. It doesn't support variable replacement operations.
264-
* The referenced notebooks must be published. You need to publish the notebooks to reference them unless you select the [option to enable an unpublished notebook reference](#reference-unpublished-notebook). Synapse Studio does not recognize the unpublished notebooks from the Git repo.
264+
* The referenced notebooks must be published. You need to publish the notebooks to reference them, unless you select the [option to enable an unpublished notebook reference](#reference-unpublished-notebook). Synapse Studio does not recognize the unpublished notebooks from the Git repo.
265265
* Referenced notebooks don't support statement depths larger than five.
266266

267267
### Use the variable explorer
@@ -283,15 +283,15 @@ A step-by-step status of a cell run appears beneath the cell to help you see its
283283

284284
### Use the Spark progress indicator
285285

286-
A Synapse notebook is purely Spark based. Code cells run on the serverless Apache Spark pool remotely. A Spark job progress indicator with a real-time progress bar appears to help you understand the job run status.
286+
A Synapse notebook is purely Spark based. Code cells run on the serverless Apache Spark pool remotely. A Spark job progress indicator with a real-time progress bar helps you understand the job run status.
287287

288288
The number of tasks for each job or stage helps you identify the parallel level of your Spark job. You can also drill deeper to the Spark UI of a specific job (or stage) by selecting the link on the job (or stage) name.
289289

290290
![Screenshot of the Spark progress indicator in a Synapse notebook.](./media/apache-spark-development-using-notebooks/synapse-spark-progress-indicator.png)
291291

292292
### <a name = "spark-session-configuration"></a>Configure a Spark session
293293

294-
On the **Configure session** pane, you can specify the timeout duration, the number, and the size of executors to give to the current Spark session. Restart the Spark session for configuration changes to take effect. All cached notebook variables are cleared.
294+
On the **Configure session** pane, you can specify the timeout duration, the number of executors, and the size of executors to give to the current Spark session. Restart the Spark session for configuration changes to take effect. All cached notebook variables are cleared.
295295

296296
You can also create a configuration from the Apache Spark configuration or select an existing configuration. For details, refer to [Manage Apache Spark configuration](../../synapse-analytics/spark/apache-spark-azure-create-spark-configuration.md).
297297

@@ -496,7 +496,7 @@ display(slider2)
496496

497497
* The global `display` function that Azure Synapse Analytics provides doesn't support displaying multiple widgets in one call (that is, `display(a, b)`). This behavior is different from the IPython `display` function.
498498

499-
* If you close a notebook that contains IPython widget, you can't view or interact with the widget until you run the corresponding cell again.
499+
* If you close a notebook that contains an IPython widget, you can't view or interact with the widget until you run the corresponding cell again.
500500

501501
## Save notebooks
502502

@@ -561,7 +561,7 @@ In summary:
561561

562562
## Manage active sessions
563563

564-
You can reuse your notebook sessions without having to start new ones. In Synapse notebooks, you can manage your active sessions in a single list. To open the list, select the ellipsis (**...**), and then select **Manage sessions** to open the **Active sessions** pane.
564+
You can reuse your notebook sessions without having to start new ones. In Synapse notebooks, you can manage your active sessions in a single list. To open the list, select the ellipsis (**...**), and then select **Manage sessions**.
565565

566566
![Screenshot of selections for opening a list of active Synapse notebook sessions.](./media/apache-spark-development-using-notebooks/synapse-notebook-manage-sessions.png)
567567

@@ -614,7 +614,7 @@ Synapse notebooks support the magic command `%history` to print the input comman
614614
In the preceding code, `-n` is the print execution number. The `range` value can be:
615615

616616
* `N`: Print code of the `Nth` executed cell.
617-
* `M-N`: Print code from the `Mth` to `Nth` executed cell.
617+
* `M-N`: Print code from the `Mth` to the `Nth` executed cell.
618618

619619
For example, to print input history from the first to the second executed cell, use `%history -n 1-2`.
620620

articles/synapse-analytics/sql/author-sql-script.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ To start the authoring experience in a SQL script, you can create a new SQL scri
2020

2121
- Select the plus sign (**+**), and then select **SQL script**.
2222

23-
- Right-click the number next to **SQL scripts**, and then select **New SQL script**.
23+
- Right-click **SQL scripts**, and then select **New SQL script**.
2424

25-
- Right-click the number next to **SQL scripts**, and then select **Import**. Select an existing SQL script from your local storage.
25+
- Right-click **SQL scripts**, and then select **Import**. Select an existing SQL script from your local storage.
2626

2727
![Screenshot that shows the Develop pane and the command to import a SQL script.](media/author-sql-script/new-sql-script-3-actions.png)
2828

@@ -77,12 +77,12 @@ By using a shortcut menu on the **Data** pane, you can select actions for resour
7777

7878
To create a folder:
7979

80-
1. On the **Develop** pane, right-click in the **SQL scripts** area and then select **New folder**.
80+
1. On the **Develop** pane, right-click **SQL scripts** and then select **New folder**.
8181

8282
> [!div class="mx-imgBorder"]
8383
> ![Screenshot that shows an example of a SQL script and a shortcut menu with the command to create a new folder.](./media/author-sql-script/new-sql-script-create-folder.png)
8484
85-
1. On the **New folder** pane, enter the name of the new folder.
85+
1. On the pane that opens, enter the name of the new folder.
8686

8787
To move a SQL script into a folder:
8888

0 commit comments

Comments
 (0)