Skip to content

Commit b068901

Browse files
committed
Converted emoji's/icons/images to LaTeX math symbols so they render in PDF
1 parent b9e8a1e commit b068901

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

jupyter.Rmd

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ process.
102102
To run the a code cell independently, the cell needs to first be activated. This
103103
is done by clicking on it with the cursor. Jupyter will indicate a cell has been
104104
activated by highlighting it with a blue rectangle to its left. After the cell
105-
has been activated (Figure \@ref(fig:activate-and-run-button)), the cell can be run by either pressing the **Run** ()
105+
has been activated (Figure \@ref(fig:activate-and-run-button)), the cell can be run by either pressing the **Run** ($\blacktriangleright$)
106106
button in the toolbar, or by using a keyboard shortcut of
107107
`Shift + Enter`.
108108

@@ -117,7 +117,7 @@ To execute all of the code cells in an entire notebook, you have three options:
117117

118118
2. Select **Kernel** >> **Restart Kernel and Run All Cells...** from the menu (Figure \@ref(fig:restart-kernel-run-all)).
119119

120-
3. Click the (▶▶) button in the tool bar.
120+
3. Click the ($\blacktriangleright\blacktriangleright$) button in the tool bar.
121121

122122
All of these commands result in all of the code cells in a notebook being run.
123123
However, there is a slight difference between them. In particular, only
@@ -139,8 +139,8 @@ outputs the results. Kernels for many different programming languages have
139139
been created for Jupyter, which means that Jupyter can interpret and execute
140140
the code of many different programming languages. To run R code, your notebook
141141
will need an R kernel. In the top right of your window, you can see a circle
142-
that indicates the status of your kernel. If the circle is empty (),
143-
the kernel is idle and ready to execute code. If the circle is filled in (),
142+
that indicates the status of your kernel. If the circle is empty ($\bigcirc$),
143+
the kernel is idle and ready to execute code. If the circle is filled in ($\bullet$),
144144
the kernel is busy running some code.
145145

146146
You may run into problems where your kernel \index{kernel!interrupt,restart} is stuck for an excessive amount
@@ -181,7 +181,7 @@ To edit a Markdown cell in Jupyter, you need to double click on the cell. Once
181181
you do this, the unformatted (or *unrendered*) version of the text will be
182182
shown (Figure \@ref(fig:markdown-cell-not-run)). You
183183
can then use your keyboard to edit the text. To view the formatted
184-
(or *rendered*) text (Figure \@ref(fig:markdown-cell-run)), click the **Run** () button in the toolbar,
184+
(or *rendered*) text (Figure \@ref(fig:markdown-cell-run)), click the **Run** ($\blacktriangleright$) button in the toolbar,
185185
or use the `Shift + Enter` keyboard shortcut.
186186

187187
```{r markdown-cell-not-run, echo = FALSE, fig.cap = "A Markdown cell in Jupyter that has not yet been rendered and can be edited.", fig.retina = 2, out.width="100%"}
@@ -201,7 +201,7 @@ By default, all new cells in Jupyter start as code cells, so
201201
the cell format needs to be changed to be recognized and rendered as a Markdown
202202
cell. To do this, click on the cell with your cursor to
203203
ensure it is activated. Then click on the drop-down box on the toolbar that says "Code" (it
204-
is next to the ▶▶ button), and change it from "**Code**" to "**Markdown**" (Figure \@ref(fig:convert-to-markdown-cell)).
204+
is next to the $\blacktriangleright\blacktriangleright$ button), and change it from "**Code**" to "**Markdown**" (Figure \@ref(fig:convert-to-markdown-cell)).
205205

206206
```{r convert-to-markdown-cell, echo = FALSE, fig.cap = "New cells are by default code cells. To create Markdown cells, the cell format must be changed.", fig.retina = 2, out.width="100%"}
207207
image_read("img/convert-to-markdown-cell.png") |>
@@ -226,7 +226,7 @@ As you might know (or at least imagine) by now, Jupyter notebooks are great for
226226
interactively editing, writing and running R code; this is what they were
227227
designed for! Consequently, Jupyter notebooks are flexible in regards to code
228228
cell execution order. This flexibility means that code cells can be run in any
229-
arbitrary order using the **Run** () button. But this flexibility has a downside:
229+
arbitrary order using the **Run** ($\blacktriangleright$) button. But this flexibility has a downside:
230230
it can lead to Jupyter notebooks whose code cannot be executed in a linear
231231
order (from top to bottom of the notebook). A nonlinear notebook is problematic
232232
because a linear order is the conventional way code documents are run, and
@@ -235,7 +235,7 @@ code is used in some automated process, it will need to run in a linear order,
235235
from top to bottom of the notebook. \index{Jupyter notebook!best practices}
236236

237237
The most common way to inadvertently create a nonlinear notebook is to rely solely
238-
on using the button to execute cells. For example,
238+
on using the $\blacktriangleright$ button to execute cells. For example,
239239
suppose you write some R code that creates an R object, say a variable named
240240
`y`. When you execute that cell and create `y`, it will continue
241241
to exist until it is deliberately deleted with R code, or when the Jupyter
@@ -288,7 +288,7 @@ We recommend as a best practice to run the entire notebook in a fresh R session
288288
at least 2-3 times within any period of work. Note that,
289289
critically, you *must do this in a fresh R session* by restarting your kernel.
290290
We recommend using either the **Kernel** >>
291-
**Restart Kernel and Run All Cells...** command from the menu or the ▶▶
291+
**Restart Kernel and Run All Cells...** command from the menu or the $\blacktriangleright\blacktriangleright$
292292
button in the toolbar. Note that the **Run** >> **Run All Cells**
293293
menu item will not restart the kernel, and so it is not sufficient
294294
to guard against these errors.
@@ -327,7 +327,7 @@ their computer to run the analysis successfully.
327327

328328
2. As you write code in a Jupyter notebook, run the notebook in a linear order
329329
and in its entirety often (2-3 times every work session) via the **Kernel** >>
330-
**Restart Kernel and Run All Cells...** command from the Jupyter menu or the ▶▶
330+
**Restart Kernel and Run All Cells...** command from the Jupyter menu or the $\blacktriangleright\blacktriangleright$
331331
button in the toolbar.
332332

333333
3. Write the code that loads external R packages near the top of the Jupyter

0 commit comments

Comments
 (0)