|
21 | 21 | "colab_type": "text"
|
22 | 22 | },
|
23 | 23 | "source": [
|
24 |
| - "<a href=\"https://practicalai.me\"><img height=\"80\" src=\"https://raw.githubusercontent.com/practicalAI/practicalAI/master/images/practicalai_logo.png\" align=\"left\" hspace=\"20px\" vspace=\"5px\"></a>\n", |
25 |
| - "<img src=\"https://raw.githubusercontent.com/practicalAI/practicalAI/master/images/colab.png\" width=170 align=\"right\">\n", |
| 24 | + "<a href=\"https://practicalai.me\"><img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/rounded_logo.png\" width=\"100\" align=\"left\" hspace=\"20px\" vspace=\"20px\"></a>\n", |
26 | 25 | "\n",
|
| 26 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/00_Notebooks/colab.png\" width=\"200\" vspace=\"20px\" hspace=\"20px\" align=\"right\">\n", |
| 27 | + "\n", |
| 28 | + "<div align=\"left\">\n", |
27 | 29 | "<h1>Notebook Basics</h1>\n",
|
28 | 30 | "\n",
|
29 |
| - "In this lesson we will learn how to work with the **notebooks**. Notebooks are a great medium to visualize programming. We will use these notebooks to code in Python and learn the basics of machine learning." |
| 31 | + "In this lesson we will learn how to work with the **notebooks**. Notebooks are a great medium to visualize programming. We will use these notebooks to code in Python and learn the basics of machine learning.\n", |
| 32 | + "</div>" |
30 | 33 | ]
|
31 | 34 | },
|
32 | 35 | {
|
|
36 | 39 | "colab_type": "text"
|
37 | 40 | },
|
38 | 41 | "source": [
|
39 |
| - "<table align=\"left\">\n", |
| 42 | + "<table align=\"center\">\n", |
40 | 43 | " <td>\n",
|
41 |
| - " <img src=\"https://raw.githubusercontent.com/practicalAI/practicalAI/master/images/practicalai_logo.png\" height=\"20\">\n", |
42 |
| - " <a target=\"_blank\" href=\"https://practicalai.me\">View on practicalAI</a>\n", |
| 44 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/rounded_logo.png\" width=\"25\"><a target=\"_blank\" href=\"https://practicalai.me\"> View on practicalAI</a>\n", |
43 | 45 | " </td>\n",
|
44 | 46 | " <td>\n",
|
45 |
| - " <img src=\"https://raw.githubusercontent.com/practicalAI/practicalAI/master/images/colab_logo.png\" height=\"25\" />\n", |
46 |
| - " <a target=\"_blank\" href=\"https://colab.research.google.com/github/practicalAI/practicalAI/blob/master/notebooks/00_Notebooks.ipynb\">Run in Google Colab</a>\n", |
| 47 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/colab_logo.png\" width=\"25\"><a target=\"_blank\" href=\"https://colab.research.google.com/github/practicalAI/practicalAI/blob/master/notebooks/00_Notebooks.ipynb\"> Run in Google Colab</a>\n", |
47 | 48 | " </td>\n",
|
48 | 49 | " <td>\n",
|
49 |
| - " <img src=\"https://raw.githubusercontent.com/practicalAI/practicalAI/master/images/github_logo.png\" height=\"20\" />\n", |
50 |
| - " <a target=\"_blank\" href=\"https://github.com/practicalAI/practicalAI/blob/master/notebooks/00_Notebooks.ipynb\">View code on GitHub</a>\n", |
| 50 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/github_logo.png\" width=\"22\"><a target=\"_blank\" href=\"https://github.com/practicalAI/practicalAI/blob/master/notebooks/00_Notebooks.ipynb\"> View code on GitHub</a>\n", |
51 | 51 | " </td>\n",
|
52 | 52 | "</table>"
|
53 | 53 | ]
|
|
69 | 69 | "colab_type": "text"
|
70 | 70 | },
|
71 | 71 | "source": [
|
72 |
| - "1. Sign into your [Google](https://accounts.google.com/signin) account to start using the notebook.\n", |
73 |
| - "2. If you want to save your work, click the **COPY TO DRIVE** button on the toolbar. This will open the notebook in a new tab.\n", |
| 72 | + "1. Sign into your [Google](https://accounts.google.com/signin) account to start using the notebook. If you don't want to save your work, you can continue to run the notebook.\n", |
| 73 | + "2. If you do want to save your work, click the **COPY TO DRIVE** button on the toolbar. This will open a new notebook in a new tab.\n", |
| 74 | + "\n", |
| 75 | + "<div align=\"left\">\n", |
| 76 | + "  <img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/00_Notebooks/copy_to_drive.png\" width=\"320\">\n", |
| 77 | + "</div>\n", |
| 78 | + "\n", |
74 | 79 | "3. Rename this new notebook by removing the words `Copy of` from the title (change \"`Copy of 00_Notebooks`\" to \"`00_Notebooks`\").\n",
|
| 80 | + "\n", |
| 81 | + "<div align=\"left\">\n", |
| 82 | + "  <img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/00_Notebooks/rename.gif\" width=\"320\">\n", |
| 83 | + "</div>\n", |
| 84 | + "\n", |
75 | 85 | "4. Now you can run the code, make changes and it's all saved to your personal Google Drive.\n"
|
76 | 86 | ]
|
77 | 87 | },
|
|
117 | 127 | "colab_type": "text"
|
118 | 128 | },
|
119 | 129 | "source": [
|
120 |
| - "To create a cell at a particular location, click on the desired location in the notebook and create a text cell by clicking on the **➕TEXT** (located in the top left corner). Once you create the cell, click on it and type the following inside it:\n", |
| 130 | + "To create a cell at a particular location, click on the desired location in the notebook and create a text cell by clicking on the **➕TEXT** (located in the top left corner). \n", |
| 131 | + "\n", |
| 132 | + "<div align=\"left\">\n", |
| 133 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/00_Notebooks/add_text.png\" width=\"320\">\n", |
| 134 | + "<div align=\"left\">\n", |
| 135 | + "\n", |
| 136 | + "Once you create the cell, click on it and type the following inside it:\n", |
121 | 137 | "\n",
|
122 | 138 | "\n",
|
123 | 139 | "```\n",
|
|
126 | 142 | "```"
|
127 | 143 | ]
|
128 | 144 | },
|
| 145 | + { |
| 146 | + "cell_type": "markdown", |
| 147 | + "metadata": { |
| 148 | + "id": "2O5EqrqbWBlH", |
| 149 | + "colab_type": "text" |
| 150 | + }, |
| 151 | + "source": [ |
| 152 | + "### This is a header\n", |
| 153 | + "Hello world!" |
| 154 | + ] |
| 155 | + }, |
129 | 156 | {
|
130 | 157 | "cell_type": "markdown",
|
131 | 158 | "metadata": {
|
|
183 | 210 | "colab_type": "text"
|
184 | 211 | },
|
185 | 212 | "source": [
|
186 |
| - "Once you create the cell, you can move it up and down by clicking on the sell and then pressig the ⬆️ and ⬇️ button on the top right of the cell. " |
| 213 | + "Once you create the cell, you can move it up and down by clicking on the cell and then pressing the ⬆️ and ⬇️ button on the top right of the cell. \n", |
| 214 | + "\n", |
| 215 | + "<div align=\"left\">\n", |
| 216 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/00_Notebooks/move_cells.png\" width=\"500\">\n", |
| 217 | + "</div>" |
187 | 218 | ]
|
188 | 219 | },
|
189 | 220 | {
|
|
203 | 234 | "id": "vKrqxJEmTfQU"
|
204 | 235 | },
|
205 | 236 | "source": [
|
206 |
| - "You can delete the cell by clicking on it and pressing the trash can button 🗑️ on the top right corner of the cell. Alternatively, you can also press ⌘/Ctrl + M + D." |
| 237 | + "You can delete the cell by clicking on it and pressing the trash can button 🗑️ on the top right corner of the cell. Alternatively, you can also press ⌘/Ctrl + M + D.\n", |
| 238 | + "\n", |
| 239 | + "<div align=\"left\">\n", |
| 240 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/00_Notebooks/delete_cells.png\" width=\"500\">\n", |
| 241 | + "</div>" |
207 | 242 | ]
|
208 | 243 | },
|
209 | 244 | {
|
|
223 | 258 | "colab_type": "text"
|
224 | 259 | },
|
225 | 260 | "source": [
|
226 |
| - "You can repeat the steps above to create, edit and delete a *code* cell. You can create a code cell by clicking on the ➕CODE (located in the top left corner). Once you have created the cell, click on it and type the following inside it:" |
| 261 | + "You can repeat the steps above to create, edit and delete a *code* cell. You can create a code cell by clicking on the ➕CODE (located in the top left corner).\n", |
| 262 | + "\n", |
| 263 | + "<div align=\"left\">\n", |
| 264 | + "<img src=\"https://raw.githubusercontent.com/practicalAI/images/master/images/00_Notebooks/add_code.png\" width=\"320\">\n", |
| 265 | + "</div>\n", |
| 266 | + "\n", |
| 267 | + "Once you have created the cell, click on it and type the following inside it and then press `Shift + Enter` to execute the code.\n", |
| 268 | + "\n", |
| 269 | + "```\n", |
| 270 | + "print (\"Hello world!\")\n", |
| 271 | + "```" |
227 | 272 | ]
|
228 | 273 | },
|
229 | 274 | {
|
|
254 | 299 | {
|
255 | 300 | "cell_type": "markdown",
|
256 | 301 | "metadata": {
|
257 |
| - "id": "9ypRW8RiVZpW", |
| 302 | + "id": "MeE6daOaK8rb", |
258 | 303 | "colab_type": "text"
|
259 | 304 | },
|
260 | 305 | "source": [
|
261 | 306 | "---\n",
|
262 |
| - "<br>\n", |
263 |
| - "<img height=\"25\" src=\"https://raw.githubusercontent.com/practicalAI/practicalAI/master/images/twitter.gif\" align=\"left\" vspace=\"17px\" hspace=\"17px\">\n", |
| 307 | + "<div align=\"center\">\n", |
| 308 | + "\n", |
| 309 | + "Subscribe to our [newsletter](https://practicalai.me/#newsletter) and follow us on social media to get the latest updates! <br>\n", |
264 | 310 | "\n",
|
265 |
| - "Subscribe to our [newsletter](https://practicalai.me/#newsletter) and follow us on social media to get the latest updates! <br><div><a class=\"ai-header-badge\" target=\"_blank\" href=\"https://github.com/GokuMohandas/practicalAI\">\n", |
266 |
| - " <img src=\"https://img.shields.io/github/stars/GokuMohandas/practicalAI.svg?style=social&label=Star\">\n", |
267 |
| - " </a> \n", |
268 |
| - " <a class=\"ai-header-badge\" target=\"_blank\" href=\"https://www.youtube.com/channel/UCgW4K2UDK21kHIzxpjNos7Q\">\n", |
269 |
| - " <img src=\"https://img.shields.io/badge/style--5eba00.svg?label=Subscribe&logo=youtube&style=social\">\n", |
270 |
| - " </a> \n", |
271 |
| - " <a class=\"ai-header-badge\" target=\"_blank\" href=\"https://twitter.com/GokuMohandas\">\n", |
272 |
| - " <img src=\"https://img.shields.io/twitter/follow/GokuMohandas.svg?label=Follow&style=social\">\n", |
273 |
| - " </a> \n", |
274 |
| - " <a class=\"ai-header-badge\" target=\"_blank\" href=\"https://www.linkedin.com/company/practicalai-me\">\n", |
275 |
| - " <img src=\"https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social\"></a>\n", |
276 |
| - " </div>" |
| 311 | + "<a class=\"ai-header-badge\" target=\"_blank\" href=\"https://github.com/GokuMohandas/practicalAI\"><img src=\"https://img.shields.io/github/stars/GokuMohandas/practicalAI.svg?style=social&label=Star\"></a> \n", |
| 312 | + "<a class=\"ai-header-badge\" target=\"_blank\" href=\"https://www.linkedin.com/company/practicalai-me\"><img src=\"https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social\"></a> \n", |
| 313 | + "<a class=\"ai-header-badge\" target=\"_blank\" href=\"https://twitter.com/GokuMohandas\"><img src=\"https://img.shields.io/twitter/follow/GokuMohandas.svg?label=Follow&style=social\"></a> \n", |
| 314 | + "</div>" |
277 | 315 | ]
|
278 | 316 | }
|
279 | 317 | ]
|
|
0 commit comments