Skip to content

Commit 644187f

Browse files
authored
Grammar
1 parent 4a5e66a commit 644187f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lessons/01_setting_up.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ JupyterLab interface.<br>
141141
_Source: [Python for Geographic Data Analysis](https://pythongis.org/part1/chapter-01/nb/04-using-jupyterlab.html)_
142142
:::
143143

144-
Even though JupyterLab opens your web browser, it is not actually accessing the internet. It is running on your local computer at the port `http://localhost:8888` which is only hosted on your computer and is not accessible to anyone else.
144+
Even though JupyterLab opens your web browser, it is not actually accessing the internet. It is running on your local computer at the port `http://localhost:8888`, which is only hosted on your computer and is not accessible to anyone else.
145145

146146
### File navigator
147147

148-
The navigation panel on the left-hand side allows us to access the file navigator which allows us to navigate through the files on our computer and open them in JupyterLab. To begin, let us make a new folder for this workshop in our `Desktop` folder. To create a new folder click the "New Folder" button in the file navigator and title it `intro_python`.
148+
The navigation panel on the left-hand side allows us to access the file navigator, which allows us to navigate through the files on our computer and open them in JupyterLab. To begin, let us make a new folder for this workshop in our `Desktop` folder. To create a new folder, first navigate to your Desktop in the naviation panel, then click the "New Folder" button above the file navigator and title it `intro_python`.
149149

150150
::: {#fig-Create_intro_python .figure}
151151
![](../img/Create_intro_python.gif){width=600px}
@@ -162,7 +162,7 @@ Creating `intro_python` directory.
162162
- `results/`: directory for intermediate results
163163
- `figures/`: directory for the plots you will generate
164164

165-
We will create all of the above directories for this exercise. You can download the `data` directory by right-clicking [here](https://www.dropbox.com/scl/fi/0c84zbbqsjemtj1zscauw/data.zip?rlkey=rndec063vjqlrx2hsvtq9q089&st=egb5wt10&dl=1) and selecting "Save Link As..". Place the ZIP file within your `intro_python` directory Within a file browser, navigate to your `intro_python` directory and double-click on the `data.zip` file in order to uncompress it.
165+
We will create all of the above directories for this exercise. You can download the `data` directory by right-clicking [here](https://www.dropbox.com/scl/fi/0c84zbbqsjemtj1zscauw/data.zip?rlkey=rndec063vjqlrx2hsvtq9q089&st=egb5wt10&dl=1) and selecting "Save Link As...". Place the ZIP file within your `intro_python` directory. Within a file browser, navigate to your `intro_python` directory and double-click on the `data.zip` file in order to uncompress it.
166166

167167
Next, go ahead and add a `results` and `figures` directory within your `intro_python` directory. When finished, your working directory should look like this:
168168

@@ -192,7 +192,7 @@ Table: JupyterLab menu options and descriptions. {#tbl-jupyter_menu}
192192
| **Edit** | Provides options for undo, redo and control over cells. |
193193
| **View** | Provides options for controlling the appearance of JupyterLab. |
194194
| **Run** | Provides actions for running cells of code. |
195-
| **Kernel** | Provides options for handle the kernel. |
195+
| **Kernel** | Provides options for handling the kernel. |
196196
| **Tabs** | Provides options for the tabs open in the workspace. |
197197
| **Settings** | Provides options for JupyterLab settings. |
198198
| **Help** | Provides links to reference materials for using JupyterLab |
@@ -258,7 +258,7 @@ Add 3 and 5
258258
3 + 5
259259
```
260260

261-
Python is trying to run the text "Add 3 and 5" as a command, which is not valid Python syntax. As a result, we get an `invalid syntax` error in the console. This error means that the Python interpreter did not know what to do with that command. Readd the `#` to re-comment the appropriate line.
261+
Python is trying to run the text "Add 3 and 5" as a command, which is not valid Python syntax. As a result, we get an `invalid syntax` error in the console. This error means that the Python interpreter did not know what to do with that command. Re-add the `#` to re-comment the appropriate line.
262262

263263
This is a clear example of how Python requires a specific syntax that must be followed for the code to run properly. We will continue to learn more about the syntax and structure of Python code as we go through the workshop. It really is its own _language_, just like English, with its own grammar and rules.
264264

@@ -273,4 +273,4 @@ Use `#` signs to comment. **Comment liberally** in your Python scripts. This wil
273273

274274
[Next Lesson >>](02_variables.qmd)
275275

276-
[Back to Schedule](../schedule/schedule.qmd)
276+
[Back to Schedule](../schedule/schedule.qmd)

0 commit comments

Comments
 (0)