Skip to content

Commit

Permalink
Update lab submission instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Nov 29, 2023
1 parent ee9c60a commit 7a500d2
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 22 deletions.
2 changes: 1 addition & 1 deletion _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ parts:
numbered: false
maxdepth: 2
chapters:
- file: book/labs/README
- file: book/labs/instructions
- file: book/labs/lab_01
- file: book/labs/lab_02
- file: book/labs/lab_03
Expand Down
36 changes: 36 additions & 0 deletions book/labs/instructions.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Submission Instructions\n",
"\n",
"1. Click on the `Open in Colab` button at the top of each lab notebook. This will open the lab in Google Colab.\n",
"2. Copy the notebook to your Google Drive. The notebook will be saved to **My Drive -> Colab Notebooks -> Copy of lab_x.ipynb**. You can change the filename back to **lab_x.ipynb**.\n",
"\n",
" ![](https://i.imgur.com/1bxdiTz.png)\n",
"3. Follow the directions on the lab notebook and write code to complete the exercises.\n",
"4. When you are finished, Click on **Runtime -> Restart and run all**. Make sure that you notebook runs well and all code cell outputs are shown. \n",
"\n",
" ![](https://i.imgur.com/6juNLRG.png)\n",
"\n",
"5. Click on the **Share** button in the top right corner and change the notebook general access from Restrcted to **Anyone with the link**. \n",
"\n",
" ![](https://i.imgur.com/FmNZSdx.png)\n",
"6. Click on the **Copy link** button.\n",
"\n",
" ![](https://i.imgur.com/3v1DNoj.png)\n",
"7. Open Chrome Incognito mode, paste the link to the address bar and press Enter. Make sure that you can preview the notebook content. Otherwise, you might need to save a copy of the notebook from Colab to your Google Drive. \n",
"8. Copy the link and paste it to the Lab Submission page."
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
28 changes: 28 additions & 0 deletions book/labs/instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
jupytext:
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.15.2
---

# Submission Instructions

1. Click on the `Open in Colab` button at the top of each lab notebook. This will open the lab in Google Colab.
2. Copy the notebook to your Google Drive. The notebook will be saved to **My Drive -> Colab Notebooks -> Copy of lab_x.ipynb**. You can change the filename back to **lab_x.ipynb**.

![](https://i.imgur.com/1bxdiTz.png)
3. Follow the directions on the lab notebook and write code to complete the exercises.
4. When you are finished, Click on **Runtime -> Restart and run all**. Make sure that you notebook runs well and all code cell outputs are shown.

![](https://i.imgur.com/6juNLRG.png)

5. Click on the **Share** button in the top right corner and change the notebook general access from Restrcted to **Anyone with the link**.

![](https://i.imgur.com/FmNZSdx.png)
6. Click on the **Copy link** button.

![](https://i.imgur.com/3v1DNoj.png)
7. Open Chrome Incognito mode, paste the link to the address bar and press Enter. Make sure that you can preview the notebook content. Otherwise, you might need to save a copy of the notebook from Colab to your Google Drive.
8. Copy the link and paste it to the Lab Submission page.
24 changes: 4 additions & 20 deletions book/labs/lab_01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,14 @@
"5. Run the code cell to generate an interactive map.\n",
"6. Ensure that your name is visible on the map.\n",
"7. Take a screenshot of your map and save it as an image.\n",
"8. Upload the screenshot to Canvas."
"8. Submit your screenshot and the link to your Colab notebook.\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "775d547981fc4352aa5ad9604244cc63",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"import leafmap\n",
"\n",
Expand Down Expand Up @@ -93,7 +77,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion book/labs/lab_01.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To complete this question, follow the steps below:
5. Run the code cell to generate an interactive map.
6. Ensure that your name is visible on the map.
7. Take a screenshot of your map and save it as an image.
8. Upload the screenshot to Canvas.
8. Submit your screenshot and the link to your Colab notebook.

```{code-cell} ipython3
import leafmap
Expand Down

0 comments on commit 7a500d2

Please sign in to comment.