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
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ In this lesson, we will:
35
35
36
36
## Overview of lesson
37
37
38
-
This lesson includes instructions on how to install Python, open a JupyterLab notebook and **run Python code on your own**. We will be using `Anaconda` and JupyterLab so that you can work within the notebook ecosystem, which allows you to see the results of your code immediately. These same tools are widely used across fields for research and data scientists to explore datasets, document code and share results with collaborators.
38
+
This lesson includes instructions on how to install Python, open a JupyterLab notebook and **run Python code on your own**. We will be using **Anaconda and JupyterLab** so that you can work within the notebook ecosystem, which allows you to see the results of your code immediately. These same tools are widely used across fields for research and data scientists to explore datasets, document code and share results with collaborators.
39
39
40
40
By the end, you will have a working Python environment that you can reuse for future projects, whether you are automating a task or starting a larger analysis!
41
41
@@ -137,8 +137,7 @@ We will open JupyterLab by clicking the "Launch" button under the JupyterLab app
137
137
::: {#fig-jupyter_lab_interface .figure}
138
138

139
139
140
-
JupyterLab interface.<br>
141
-
_Source: [Python for Geographic Data Analysis](https://pythongis.org/part1/chapter-01/nb/04-using-jupyterlab.html)_
140
+
JupyterLab interface.
142
141
:::
143
142
144
143
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.
-`figures/`: directory for the plots you will generate
164
163
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/eop1fgud59p4cutry16xm/data.zip?rlkey=ljd313mlverfvns79kz6mk7ol&st=yqhnxi2p&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.
164
+
We will create all of the above directories for this exercise. Add a `results`and `figures` directory within your `intro_python` directory.
166
165
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:
166
+
Download the `data` directory as follows:
167
+
168
+
-[Download the ZIP file]((https://www.dropbox.com/scl/fi/eop1fgud59p4cutry16xm/data.zip?rlkey=ljd313mlverfvns79kz6mk7ol&st=yqhnxi2p&dl=1)) by right-clicking this link and choose “Save Link As…”
169
+
- Save the file into your intro_python directory
170
+
- Double click the `data.zip` file to extract the contents
171
+
172
+
When finished, your working directory should look like this:
@@ -221,7 +226,7 @@ Creating Jupyter notebook and renaming it.
221
226
222
227
We will be writing text within the cells of the Jupyter Notebook. These blocks can either be text (Markdown) or code (Python). To create a new cell, click the `"+"` button in the toolbar at the top of the notebook. **Each time we come across a code block in these lessons, we will click the "+" button to create a new code block in our Jupyter Notebook.** We could add all of the code to a single code block, but then we would need to re-evaluate all of the code each time we added some code. If we make new code block for each chunk of code, we only need to run the new code and not the previous code.
223
228
224
-
::: callout-note
229
+
::: {.callout-note collapse="true"}
225
230
# Using Markdown within Jupyter Notebook
226
231
Jupyter notebooks are capable of being rendered into HTML documents. Because of this, you can add text around your code blocks using Markdown. If you are interested in learning more about using Markdown to do this, this [Markdown basics from the Jupyter Documentation](https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Working%20With%20Markdown%20Cells.html) is helpful.
0 commit comments