|
50 | 50 |
|
51 | 51 | 1. Open **Observable Desktop**, then click **Open browser**. |
52 | 52 | 1. If needed, **sign in** to your Observable account, or **create an account**. |
53 | | - 1. Under **Authorize your device**, click **Continue**, then **Authorize**. |
| 53 | + 1. Click **Authorize the desktop app**. |
54 | 54 | 1. Close the **Success** window to return to Observable Desktop. |
55 | 55 | 1. Wait a few seconds for Observable Desktop to sign in. |
56 | 56 | </script> |
|
170 | 170 | 3. Delete the cell with <span class="sans">**D**</span>. |
171 | 171 | 4. Clear the selection with <span class="sans">**esc ⎋**</span>. |
172 | 172 | </script> |
| 173 | + <script id="35" type="text/markdown"> |
| 174 | + --- |
| 175 | + |
| 176 | + ## Cell modes |
| 177 | + |
| 178 | + Cells can be written in JavaScript, Markdown, HTML, and several other languages. You can cycle between the primary modes when a cell is empty, or use the mode menu or edit menu to change the mode. |
| 179 | + </script> |
| 180 | + <script id="37" type="text/markdown"> |
| 181 | + <figure> |
| 182 | + <img src="./videos/mode-empty.webp" loading="lazy"> |
| 183 | + <figcaption>Changing the mode of an empty cell</figcaption> |
| 184 | + </figure> |
| 185 | + |
| 186 | + 1. Insert a new, empty cell. |
| 187 | + 2. Change the cell mode with <span class="sans">**down ↓**</span> or <span class="sans">**up ↑**</span>. |
| 188 | + </script> |
| 189 | + <script id="38" type="text/markdown"> |
| 190 | + <figure> |
| 191 | + <img src="./videos/mode-keyboard.webp" loading="lazy"> |
| 192 | + <figcaption>Changing the mode via keyboard shortcuts</figcaption> |
| 193 | + </figure> |
| 194 | + |
| 195 | + 1. Focus a cell, say by clicking on the editor. |
| 196 | + 2. Change the cell mode to JavaScript with <span class="sans">**command-1 ⌘1**</span>. |
| 197 | + 2. Change the cell mode to Markdown with <span class="sans">**command-2 ⌘2**</span>. |
| 198 | + 2. Change the cell mode to HTML with <span class="sans">**command-3 ⌘3**</span>. |
| 199 | + </script> |
| 200 | + <script id="39" type="text/markdown"> |
| 201 | + <figure> |
| 202 | + <img src="./videos/mode-menu.webp" loading="lazy"> |
| 203 | + <figcaption>Changing the mode via the mode menu</figcaption> |
| 204 | + </figure> |
| 205 | + |
| 206 | + 1. Focus a cell, say by clicking on the editor. |
| 207 | + 2. Change the cell mode using the **mode menu**. |
| 208 | + </script> |
173 | 209 | <script id="30" type="text/markdown"> |
174 | 210 | --- |
175 | 211 |
|
|
0 commit comments