You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lessons/01_setting_up.qmd
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -141,11 +141,11 @@ JupyterLab interface.<br>
141
141
_Source: [Python for Geographic Data Analysis](https://pythongis.org/part1/chapter-01/nb/04-using-jupyterlab.html)_
142
142
:::
143
143
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.
145
145
146
146
### File navigator
147
147
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 folderclick 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`.
-`figures/`: directory for the plots you will generate
164
164
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.
166
166
167
167
Next, go ahead and add a `results` and `figures` directory within your `intro_python` directory. When finished, your working directory should look like this:
168
168
@@ -192,7 +192,7 @@ Table: JupyterLab menu options and descriptions. {#tbl-jupyter_menu}
192
192
|**Edit**| Provides options for undo, redo and control over cells. |
193
193
|**View**| Provides options for controlling the appearance of JupyterLab. |
194
194
|**Run**| Provides actions for running cells of code. |
195
-
|**Kernel**| Provides options for handle the kernel. |
195
+
|**Kernel**| Provides options for handling the kernel. |
196
196
|**Tabs**| Provides options for the tabs open in the workspace. |
197
197
|**Settings**| Provides options for JupyterLab settings. |
198
198
|**Help**| Provides links to reference materials for using JupyterLab |
@@ -258,7 +258,7 @@ Add 3 and 5
258
258
3 + 5
259
259
```
260
260
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.
262
262
263
263
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.
264
264
@@ -273,4 +273,4 @@ Use `#` signs to comment. **Comment liberally** in your Python scripts. This wil
0 commit comments