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: docs/tools/_code-oss-editors.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ We'll cover the source code editor below, however you might also want to consult
15
15
The Quarto VS Code extension includes commands and keyboard shortcuts for rendering Quarto documents (both standalone and within websites or books). After rendering, `quarto preview` is used behind the scenes to provide a [preview pane]{
16
16
.content-hidden unless-meta="tool.is_vscode"}[preview in the Viewer Pane]{.content-hidden unless-meta="tool.is_positron"} within {{< meta tool.name >}} alongside your document:
17
17
18
-
{.border fig-alt='Two windows arranged side by side. The window on the left is a qmd file opened in {{< meta tool.name >}}. The contents of this document are the same as the first part of the Getting Started: Welcome section of this website. The contents of this document are rendered by Quarto in the window on the right.'}
18
+
{.border fig-alt='Two windows arranged side by side. The window on the left is a qmd file opened in {{< meta tool.name >}}. The contents of this document are the same as the first part of the Getting Started: Welcome section of this website. The contents of this document are rendered by Quarto in the window on the right.'}
19
19
20
20
To render and preview, execute the **Quarto: Preview** command. You can alternatively use the <kbd>Ctrl+Shift+K</kbd> keyboard shortcut, or the **Preview** button ({fig-alt="Preview icon"}) at the top right of the editor:
21
21
22
-
{.border fig-alt='The top of the {{< meta tool.name >}} editor. The right side of the editor tab area includes a Preview button.'}
22
+
{.border fig-alt='The top of the {{< meta tool.name >}} editor. The right side of the editor tab area includes a Preview button.'}
23
23
24
24
::: {.callout-note appearance="simple"}
25
25
Note that on the Mac you should use `Cmd` rather than `Ctrl` as the prefix for all Quarto keyboard shortcuts.
@@ -74,13 +74,13 @@ If you prefer to use an external browser for preview (or have no preview trigger
74
74
75
75
There are a variety of tools that make it easier to edit and execute code cells. Editing tools include syntax highlighting, code folding, code completion, and signature tips:
76
76
77
-
{.border fig-alt='A Quarto document in {{< meta tool.name >}} with a python code cell. There is a code completion helper active in the python cell.'}
77
+
{.border fig-alt='A Quarto document in {{< meta tool.name >}} with a python code cell. There is a code completion helper active in the python cell.'}
78
78
79
79
For Python, R, and Julia cells, commands are available to execute the current cell, previous cells, or the currently selected line(s).
80
80
[Cell output is shown side by side in the Jupyter interactive console:]{.content-hidden unless-meta="tool.is_vscode"}
81
81
[R and Python cells are executed in the appropriate Console, and output is shown in the pane:]{.content-hidden unless-meta="tool.is_vscode"}
82
82
83
-
{.border fig-alt='{{< meta tool.name >}} with two panes open, vscode.qmd source code on the right, and the interactive output of that code shown in a second pane on the left.'}
83
+
{.border fig-alt='{{< meta tool.name >}} with two panes open, vscode.qmd source code on the right, and the interactive output of that code shown in a second pane on the left.'}
84
84
85
85
Here are all of the commands and keyboard shortcuts available for executing cells:
86
86
@@ -140,7 +140,13 @@ Execute the **Quarto: Show Assist Panel** command to show a panel in the sidebar
140
140
141
141
For example, below help on the matplotlib `plot()` function is shown automatically when the cursor is located on the function:
{.border fig-alt='Screenshot of {{< meta tool.name >}} editor with three vertical sections. The leftmost includes the file explorer, and quarto help. The second pane is the source code for a quarto file with python code. The third is interactive with Python running and output of the code cells shown.'}
{.border .preview-image fig-alt="Screen shot of Positron editor with three vertical sections. The leftmost includes the file explorer, and quarto help. The second pane is the source code for a quarto file with python code, and the active Python Console. The third shows the Environment and Plots for the active console populated with the output of the code cells."}
149
+
:::
144
150
145
151
## Live Preview
146
152
@@ -194,6 +200,6 @@ Use the **Go to File** command <kbd>Ctrl+P</kbd> to navigate to other files and
194
200
195
201
Besides the traditional source editor described above, you can also use one of the following other editors depending on your preferences and task at hand:
196
202
197
-
1. The [Visual Editor](/docs/visual-editor/vscode/index.qmd) for WYSIWYG editing of `.qmd` documents.
203
+
1. The [Visual Editor](/docs/visual-editor/{{< meta tool.prefix >}}/index.qmd) for WYSIWYG editing of `.qmd` documents.
198
204
199
-
2. The [Notebook Editor](/docs/tools/vscode-notebook.qmd) for editing `.ipynb` notebooks.
205
+
2. The [Notebook Editor](/docs/tools/{{< meta tool.prefix >}}-notebook.qmd) for editing `.ipynb` notebooks.
Copy file name to clipboardExpand all lines: docs/tools/_code-oss-notebook.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ In addition to editing Quarto documents as plain-text `.qmd` files, you can also
4
4
5
5
The basic workflow for editing notebooks for use with Quarto is identical to the workflow for `.qmd` files. Edit the file and then execute the **Quarto: Preview** command (you can alternatively use the <kbd>Ctrl+Shift+K</kbd> keyboard shortcut). You'll see a preview of the published page side by side with the notebook:
6
6
7
-
{.border}
7
+
{.border}
8
8
9
9
After you've done an initial **Quarto: Preview**, the preview will automatically update every time you save the notebook.
0 commit comments