Skip to content

Commit 971cd14

Browse files
committed
Extract language chooser from hello
1 parent 379966c commit 971cd14

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
::: {.callout-tip}
2+
3+
# R or Python?
4+
5+
You can work through this tutorial using R or Python code examples.
6+
Select your preferred language:
7+
8+
::: {.panel-tabset group="language"}
9+
10+
## R
11+
12+
## Python
13+
14+
:::
15+
16+
:::

docs/get-started/hello/positron.qmd

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: "Tutorial: Hello, Quarto"
3-
tool: positron
4-
css: positron.css
3+
css: ../positron.css
54
editor_options:
65
markdown:
76
wrap: sentence
@@ -10,22 +9,7 @@ editor_options:
109

1110
{{< include ../_tool-chooser.md >}}
1211

13-
:::{.callout-tip}
14-
15-
# R or Python?
16-
17-
You can work through this tutorial using R or Python code examples.
18-
Select your preferred language:
19-
20-
::: {.panel-tabset group="language"}
21-
22-
## R
23-
24-
## Python
25-
26-
:::
27-
28-
:::
12+
{{< include ../_language-chooser.md >}}
2913

3014
## Overview
3115

@@ -257,11 +241,11 @@ Positron executes the code in the Console and displays the results.
257241
258242
## R
259243
260-
![](images/positron-run-cell-r.png){fig-alt="A Positron session with `hello.qmd` open in the Editor. An orange box highlights the button 'Run Cell' above a code cell with the label `plot-penguins`. The Console shows an executed line of code ending in `theme_minimal()` and the Plots pane shows a scatterplot of penguin flipper and bill length." fig-align="center"}
244+
![](images/positron-run-cell-r.png){.column-page-right fig-alt="A Positron session with `hello.qmd` open in the Editor. An orange box highlights the button 'Run Cell' above a code cell with the label `plot-penguins`. The Console shows an executed line of code ending in `theme_minimal()` and the Plots pane shows a scatterplot of penguin flipper and bill length." fig-align="center"}
261245
262246
## Python
263247
264-
![](images/positron-run-cell-python.png){fig-alt="A Positron session with `hello.qmd` open in the Editor. An orange box highlights the button 'Run Cell' above a code cell with the label `plot-penguins`. The Console shows an executed line of code ending in `theme_minimal()` and the Plots pane shows a scatterplot of penguin flipper and bill length." fig-align="center"}
248+
![](images/positron-run-cell-python.png){.column-page-right fig-alt="A Positron session with `hello.qmd` open in the Editor. An orange box highlights the button 'Run Cell' above a code cell with the label `plot-penguins`. The Console shows an executed line of code ending in `theme_minimal()` and the Plots pane shows a scatterplot of penguin flipper and bill length." fig-align="center"}
265249
266250
:::
267251

0 commit comments

Comments
 (0)