Skip to content

Commit c2decf7

Browse files
committed
Move setup to include to avoid parsing issue
1 parent 18fb143 commit c2decf7

File tree

4 files changed

+78
-74
lines changed

4 files changed

+78
-74
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
::: {.panel-tabset group="language"}
2+
3+
## R
4+
5+
1. Be sure that you have installed the `rmarkdown` and `tidyverse` packages:
6+
7+
``` r
8+
install.packages("rmarkdown")
9+
install.packages("tidyverse")
10+
```
11+
12+
2. Download `computations.qmd` below and open it in Positron.
13+
14+
::: {.callout appearance="minimal"}
15+
<i class="bi bi-download"></i> [Download computations.qmd](/docs/get-started/computations/_positron/r/computations.qmd){download="computations.qmd"}
16+
:::
17+
18+
3. Run the **Quarto: Preview** command, use the keyboard shortcut {{< kbd mac=Command-Shift-K win=Ctrl+Shift+K linux=Ctrl+Shift+K >}}, or use the **Preview** button (![](/docs/tools/images/vscode-preview-icon.svg){.light-content fig-alt="Preview icon"}![](/docs/tools/images/vscode-preview-icon-white.svg){.dark-content fig-alt="Preview icon"}) in the editor toolbar, to render and preview the document.
19+
20+
![](/docs/get-started/computations/images/positron-setup-r.png){.column-page-right fig-alt="Positron with `computations.qmd` open in the Editor. The document is being previewed in the Viewer."}
21+
22+
## Python
23+
24+
1. Install the `jupyter` and `plotnine` packages using your preferred method. For example, with `pip`:
25+
26+
``` bash
27+
pip install jupyter plotnine
28+
```
29+
30+
2. Download `computations.qmd` below and open it in Positron.
31+
32+
::: {.callout appearance="minimal"}
33+
<i class="bi bi-download"></i> [Download computations.qmd](/docs/get-started/computations/_positron/python/computations.qmd){download="computations.qmd"}
34+
:::
35+
36+
3. Run the **Quarto: Preview** command, use the keyboard shortcut {{< kbd mac=Command-Shift-K win=Ctrl+Shift+K linux=Ctrl+Shift+K >}}, or use the **Preview** button (![](/docs/tools/images/vscode-preview-icon.svg){.light-content fig-alt="Preview icon"}![](/docs/tools/images/vscode-preview-icon-white.svg){.dark-content fig-alt="Preview icon"}) in the editor toolbar, to render and preview the document.
37+
38+
![](/docs/get-started/computations/images/positron-setup-python.png){.column-page-right fig-alt="Positron with `computations.qmd` open in the Editor. The document is being previewed in the Viewer."}
39+
40+
:::

docs/get-started/computations/positron.qmd

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -31,45 +31,7 @@ You'll learn how to:
3131

3232
## Setup
3333

34-
::: {.panel-tabset group="language"}
35-
36-
## R
37-
38-
1. Be sure that you have installed the `tidyverse` package:
39-
40-
``` r
41-
install.packages("tidyverse")
42-
```
43-
44-
2. Download `computations.qmd` below and open it in Positron.
45-
46-
::: {.callout appearance="minimal"}
47-
<i class="bi bi-download"></i> [Download computations.qmd](_positron/r/computations.qmd){download="computations.qmd"}
48-
:::
49-
50-
3. Run the **Quarto: Preview** command, use the keyboard shortcut {{< kbd mac=Command-Shift-K win=Ctrl+Shift+K linux=Ctrl+Shift+K >}}, or use the **Preview** button (![](/docs/tools/images/vscode-preview-icon.svg){.light-content fig-alt="Preview icon"}![](/docs/tools/images/vscode-preview-icon-white.svg){.dark-content fig-alt="Preview icon"}) in the editor toolbar, to render and preview the document.
51-
52-
![](images/positron-setup-r.png){.column-page-right fig-alt="Positron with `computations.qmd` open in the Editor. The document is being previewed in the Viewer."}
53-
54-
## Python
55-
56-
1. Install the `jupyter` and `plotnine` packages using your preferred method. For example, with `pip`:
57-
58-
``` bash
59-
pip install jupyter plotnine
60-
```
61-
62-
2. Download `computations.qmd` below and open it in Positron.
63-
64-
::: {.callout appearance="minimal"}
65-
<i class="bi bi-download"></i> [Download computations.qmd](_positron/python/computations.qmd){download="computations.qmd"}
66-
:::
67-
68-
3. Run the **Quarto: Preview** command, use the keyboard shortcut {{< kbd mac=Command-Shift-K win=Ctrl+Shift+K linux=Ctrl+Shift+K >}}, or use the **Preview** button (![](/docs/tools/images/vscode-preview-icon.svg){.light-content fig-alt="Preview icon"}![](/docs/tools/images/vscode-preview-icon-white.svg){.dark-content fig-alt="Preview icon"}) in the editor toolbar, to render and preview the document.
69-
70-
![](images/positron-setup-python.png){.column-page-right fig-alt="Positron with `computations.qmd` open in the Editor. The document is being previewed in the Viewer."}
71-
72-
:::
34+
{{< include _positron/setup.md >}}
7335

7436
## Cell Execution
7537

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
If you would like to follow along with this tutorial in your own environment, follow the steps outlined below.
2+
3+
::: {.panel-tabset group="language"}
4+
5+
## R
6+
7+
1. Be sure that you have installed the `rmarkdown`, `tidyverse` and `palmerpenguins` packages:
8+
9+
``` r
10+
install.packages("rmarkdown")
11+
install.packages("tidyverse")
12+
install.packages("palmerpenguins")
13+
```
14+
15+
2. Download the Quarto document (`hello.qmd`) below and open it in Positron.
16+
17+
::: {.callout appearance="minimal"}
18+
<i class="bi bi-download"></i> [Download hello.qmd](/docs/get-started/hello/_positron/r/hello.qmd){download="hello.qmd"}
19+
:::
20+
21+
## Python
22+
23+
1. Install the `jupyter` and `plotnine` packages using your preferred method. For example, with `pip`:
24+
25+
``` bash
26+
pip install jupyter plotnine
27+
```
28+
29+
2. Download the Quarto document (`hello.qmd`) below and open it in Positron.
30+
31+
::: {.callout appearance="minimal"}
32+
<i class="bi bi-download"></i> [Download hello.qmd](/docs/get-started/hello/_positron/python/hello.qmd){download="hello.qmd"}
33+
:::
34+
35+
:::
36+

docs/get-started/hello/positron.qmd

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -50,41 +50,7 @@ On this page, you'll learn:
5050

5151
## Setup
5252

53-
If you would like to follow along with this tutorial in your own environment, follow the steps outlined below.
54-
55-
::: {.panel-tabset group="language"}
56-
57-
## R
58-
59-
1. Be sure that you have installed the `tidyverse` and `palmerpenguins` packages:
60-
61-
``` r
62-
install.packages("tidyverse")
63-
install.packages("palmerpenguins")
64-
```
65-
66-
2. Download the Quarto document (`hello.qmd`) below and open it in Positron.
67-
68-
::: {.callout appearance="minimal"}
69-
<i class="bi bi-download"></i> [Download hello.qmd](_positron/r/hello.qmd){download="hello.qmd"}
70-
:::
71-
72-
## Python
73-
74-
1. Install the `jupyter` and `plotnine` packages using your preferred method. For example, with `pip`:
75-
76-
``` bash
77-
pip install jupyter plotnine
78-
```
79-
80-
2. Download the Quarto document (`hello.qmd`) below and open it in Positron.
81-
82-
::: {.callout appearance="minimal"}
83-
<i class="bi bi-download"></i> [Download hello.qmd](_positron/python/hello.qmd){download="hello.qmd"}
84-
:::
85-
86-
:::
87-
53+
{{< include _positron/setup.md >}}
8854

8955
## Basic Workflow
9056

0 commit comments

Comments
 (0)