|
51 | 51 | "\n",
|
52 | 52 | "**What is a Jupyter Notebook?**\n",
|
53 | 53 | "\n",
|
54 |
| - "It is a tool that lets you <u>write text</u> and <u>run computer code</u> (typically R or Python) all mixed into a single file, making it easy to see and understand. That is, Instead of just writing programming code in one tool and the descriptions or explanations in another file or a textbook, it blends them together sequentially.\n", |
| 54 | + "It is a tool that lets you **write text** and **run computer code** (typically R or Python) all mixed into a single file, making it easy to see and understand. That is, Instead of just writing programming code in one tool and the descriptions or explanations in another file or a textbook, it blends them together sequentially.\n", |
55 | 55 | "<br>\n",
|
56 | 56 | "Also, Jupyter lets you type that computing code into boxes (called \"cells\") and run each part separately. \n",
|
57 | 57 | "<br>\n",
|
|
84 | 84 | "\n",
|
85 | 85 | "\n",
|
86 | 86 | "<br>\n",
|
87 |
| - "The top line is clearly text-based (the tool for that in Jupyter is called \"Markdown\")\n", |
| 87 | + "The top line is text-based (the tool for that in Jupyter is called \"Markdown\")\n", |
88 | 88 | "\n",
|
89 | 89 | "The next cell below is a **code cell** that has in it: \n",
|
| 90 | + "```\n", |
90 | 91 | "#this is a code cell\n",
|
91 | 92 | "print(\"This is the output from a code cell\")\n",
|
92 |
| - "<br>\n", |
93 |
| - "Finally, the bottom material is not in a cell but is the output (This is the output from a code cell)\n", |
94 |
| - "<br>\n", |
95 |
| - "The kind of code it is able to run is **Python**. If you look at the top right, you can see that this Jupyter Notebook is running Python 3 (Python language version 3) in the code cells. \n", |
| 93 | + "```\n", |
| 94 | + "Below this cell, the output redered by running the cell can be found. \n", |
| 95 | + "\n", |
| 96 | + "The code cells are able to run Python code. If you look at the top right, you can see that this Jupyter Notebook is running Python 3 (Python language version 3) in the code cells. \n", |
96 | 97 | "\n",
|
97 | 98 | "In the above image the code in the cells has already been run (Markdown is also a kind of code that renders the text in some format, so we \"run\" that too) Take a look at the same notebook before the two cells were executed:\n",
|
| 99 | + "\n", |
98 | 100 | "\n",
|
99 | 101 | "\n"
|
100 | 102 | ]
|
|
107 | 109 | "\n",
|
108 | 110 | "Jupyter Notebooks are useful because:\n",
|
109 | 111 | "\n",
|
110 |
| - "1. They are easy to Use – You don’t need to run an entire program at once. You can run small pieces of code step by step, see what happens, and fix mistakes as you go.\n", |
| 112 | + "1. They are easy to use – You don’t need to run an entire program at once. You can run small pieces of code step by step, see what happens, and fix mistakes as you go.\n", |
111 | 113 | "2. You can take notes while you code – Instead of keeping your notes in a separate document, you can write explanations right next to your code to make it easier to understand later. In this module, it means that notes can be given to you to describe the code.\n",
|
112 | 114 | "3. They help you to see your results clearly & immediately – If your code creates a table, chart, or graph, Jupyter Notebook will show it right inside the document.\n",
|
113 | 115 | "4. It's great for learning and sharing – You can save your notebook and send it to someone else so they can see your work and try it themselves.\n",
|
|
133 | 135 | "cell_type": "markdown",
|
134 | 136 | "metadata": {},
|
135 | 137 | "source": [
|
136 |
| - "To <u>run</u> a single code cell in Azure:\n", |
| 138 | + "To **run** a single code cell in Azure:\n", |
137 | 139 | "\n",
|
138 | 140 | "- Click inside the cell to select it.\n",
|
139 | 141 | "- Click the Run button (right-pointing triangle for 'play' in the toolbar)\n",
|
|
186 | 188 | "source": [
|
187 | 189 | "# Viewing a Jupyter Notebook in Azure\n",
|
188 | 190 | "\n",
|
189 |
| - "To use a notebook, you'll need to OPEN a notebook. In Azure, after you've loaded in some notebooks, you need to open the folder, then double click on a notebook so it will open. IN the image below, the arrow shows where you can find the list of notebooks. Circled is the button to expand the notebook & shrink the file structure. \n", |
| 191 | + "To use a notebook, you'll need to OPEN a notebook. In Azure, after you've loaded in some notebooks, you need to open the folder, then double click on a notebook so it will open. In the image below, the arrow shows where you can find the list of notebooks. Circled is the button to expand the notebook & shrink the file structure. \n", |
190 | 192 | "\n",
|
191 | 193 | ""
|
192 | 194 | ]
|
|
220 | 222 | "\n",
|
221 | 223 | "# Adding code or markdown boxes\n",
|
222 | 224 | "\n",
|
223 |
| - "You can create a code box or a text (Markdown) box very easily.\n", |
| 225 | + "You can create a code box or a text (markdown) box very easily.\n", |
224 | 226 | "<br>\n",
|
225 | 227 | "In Azure, to add another box hover over the space above the left side of a current box, and the following options will appear:\n",
|
226 | 228 | "\n",
|
|
247 | 249 | "## Clean up\n",
|
248 | 250 | " In the main tutorials, you'll be reminded here to \"shut down your compute instance.\" Check out the Azure tutorial for more explaination."
|
249 | 251 | ]
|
250 |
| - }, |
251 |
| - { |
252 |
| - "cell_type": "code", |
253 |
| - "execution_count": null, |
254 |
| - "metadata": {}, |
255 |
| - "outputs": [], |
256 |
| - "source": [] |
257 | 252 | }
|
258 | 253 | ],
|
259 | 254 | "metadata": {
|
|
272 | 267 | "name": "python",
|
273 | 268 | "nbconvert_exporter": "python",
|
274 | 269 | "pygments_lexer": "ipython3",
|
275 |
| - "version": "3.12.4" |
| 270 | + "version": "3.12.9" |
276 | 271 | }
|
277 | 272 | },
|
278 | 273 | "nbformat": 4,
|
|
0 commit comments