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
Copy file name to clipboardExpand all lines: articles/synapse-analytics/spark/apache-spark-development-using-notebooks.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This article describes how to use notebooks in Synapse Studio.
26
26
27
27
## Create a notebook
28
28
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.
30
30
31
31

32
32
@@ -86,7 +86,7 @@ You can use multiple languages in one notebook by specifying the correct languag
86
86
|---|------|-----|
87
87
|`%%pyspark`| Python | Run a Python query against `SparkContext`. |
88
88
|`%%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`. |
90
90
|`%%csharp`| .NET for Spark C# | Run a .NET for Spark C# query against `SparkContext`. |
91
91
|`%%sparkr`| R | Run an R query against `SparkContext`. |
92
92
@@ -122,15 +122,15 @@ You can't reference data or variables directly across different languages in a S
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.
126
126
127
127
The IntelliSense features are at different levels of maturity for different languages. Use the following table to see what's supported.
128
128
129
129
|Languages| Syntax highlight | Syntax error marker | Syntax code completion | Variable code completion| System function code completion| User function code completion| Smart indent | Code folding|
|.NET for Spark (C#)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
135
135
136
136
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
145
145
146
146
### <aname = "format-text-cell-with-toolbar-buttons"></a>Format text cells by using toolbar buttons
147
147
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.
149
149
150
150

151
151
@@ -157,7 +157,7 @@ To revoke the most recent cell operations, select the **Undo** or **Redo** butto
157
157
158
158
Supported cell operations include:
159
159
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.
161
161
* Reorder cells.
162
162
* Turn a parameter cell on or off.
163
163
* 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 (**
207
207
208
208
### <aname = "notebook-outline"></a>Use a notebook outline
209
209
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.
211
211
212
212
:::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":::
213
213
@@ -256,12 +256,12 @@ Here's an example:
256
256
257
257
The notebook reference works in both interactive mode and pipelines.
258
258
259
-
The `run` magic command has these limitations:
259
+
The `%run` magic command has these limitations:
260
260
261
261
* The command supports nested calls but not recursive calls.
262
262
* The command supports passing an absolute path or notebook name only as a parameter. It doesn't support relative paths.
263
263
* 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.
265
265
* Referenced notebooks don't support statement depths larger than five.
266
266
267
267
### 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
283
283
284
284
### Use the Spark progress indicator
285
285
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.
287
287
288
288
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.
289
289
290
290

291
291
292
292
### <aname = "spark-session-configuration"></a>Configure a Spark session
293
293
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.
295
295
296
296
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).
297
297
@@ -496,7 +496,7 @@ display(slider2)
496
496
497
497
* 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.
498
498
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.
500
500
501
501
## Save notebooks
502
502
@@ -561,7 +561,7 @@ In summary:
561
561
562
562
## Manage active sessions
563
563
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**.
565
565
566
566

567
567
@@ -614,7 +614,7 @@ Synapse notebooks support the magic command `%history` to print the input comman
614
614
In the preceding code, `-n` is the print execution number. The `range` value can be:
615
615
616
616
*`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.
618
618
619
619
For example, to print input history from the first to the second executed cell, use `%history -n 1-2`.
Copy file name to clipboardExpand all lines: articles/synapse-analytics/sql/author-sql-script.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ To start the authoring experience in a SQL script, you can create a new SQL scri
20
20
21
21
- Select the plus sign (**+**), and then select **SQL script**.
22
22
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**.
24
24
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.
26
26
27
27

28
28
@@ -77,12 +77,12 @@ By using a shortcut menu on the **Data** pane, you can select actions for resour
77
77
78
78
To create a folder:
79
79
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**.
81
81
82
82
> [!div class="mx-imgBorder"]
83
83
> 
84
84
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.
0 commit comments