Skip to content

Commit

Permalink
Merge pull request #18 from TUW-GEO/fix-docs
Browse files Browse the repository at this point in the history
Fix documentation
  • Loading branch information
MartinSchobben authored Oct 23, 2024
2 parents 5cadb05 + 5e78a1c commit 5ca9553
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SHELL = /bin/bash
.PHONY: help clean environment kernel teardown

YML = $(wildcard **/*.yml)
YML = environment.yml
REQ = $(basename $(notdir $(YML)))
BASENAME = $(shell basename $(CURDIR))

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To re-create the environment as a Jupyter kernel for execution of the notebooks,
make kernel
```

Select the kernel with the equivalent name as the `.ipynb` notebook to execute the notebook. For example, `01_lecture.ipynb` requires the kernel `01_lecture` for execution of the code blocks.
Select the kernel `mrs-env`.

# Clean-up

Expand All @@ -34,7 +34,7 @@ make teardown

# Developing

Commit notebooks without output for smaller file sizes and interactive teaching. For convenience use `nbstripout` to clean notebooks, like so:
Use the `environment-dev.yml` to setup a conda environment for developing the lecture notebooks. Commit notebooks without output for smaller file sizes and interactive teaching. For convenience use `nbstripout` to clean notebooks, like so:

```
pip install nbstripout
Expand Down
Binary file added assets/images/code_cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/markdown_cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
32 changes: 27 additions & 5 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ To use the Notebooks from the course, the following steps need to be taken:
<img src="assets/images/start_terminal.png" style="border: 1px solid black; width: 25em; "/>
</p>

2. In this file, you should open a Terminal using the Launcher and run the command
2. In this file, you should open a Terminal using the Launcher and run the command

```bash
make notebooks
Expand All @@ -66,7 +66,7 @@ To use the Notebooks from the course, the following steps need to be taken:
<img src="assets/images/new_notebooks.png" style="border: 1px solid black; width: 25em; "/>
</p>

6. Select the kernel with the equivalent name as the `.ipynb` notebook to execute the notebook. For example, `01_lecture.ipynb` requires the kernel `01_lecture` for execution of the code blocks.
6. Select the kernel `mrs-env` kernel for execution of the code blocks in the notebook.

<p style="text-align: center;">
<img src="assets/images/select_kernel.png" style="border: 1px solid black; width: 25em; "/>
Expand All @@ -75,7 +75,7 @@ To use the Notebooks from the course, the following steps need to be taken:
&nbsp;

::: {.callout-note appearance="simple"}
In case you could not select the correct server and could not find the folder from step one, you might be in the wrong server. You can change your server by selecting
In case you could not select the correct server and could not find the folder from step one, you might be in the wrong server. You can change your server by selecting

```
File -> Hub Control Panel
Expand All @@ -87,5 +87,27 @@ and clicking on `Stop My Server`.
<img src="assets/images/stop_server.png" style="border: 1px solid black; width: 25em; "/>
</p>

Then press `Start My Server` and you should be able to select the Deeplearning Notebook for the Data Science Projects in Remote Sensing course.
:::
Then press `Start My Server` and you should be able to select the "**Desktop Notebook**" for the "120.030-2024W: 120.030 Microwave Remote Sensing" course.
:::

## Editing Jupyter Notebooks

The homework exercises of the course are labeled with the postfix `_exercise.ipynb`. You are supposed to use these notebooks for the homework assignments and the completed notebooks should be submitted through TUWEL. The notebooks consist of two types of cells: Python and Markdown cells. Python cells contain executable Python code, whereas Markdown cells are used for open text and multiple choice questions. Double click on an existing cell to alter its content. To add new cells click select the cell type from the drop-down menu and click on the plus sign, as follows for Python cells:

![](assets/images/code_cell.png)

And for Markdown cells:

![](assets/images/markdown_cell.png)

For the multiple choice questions double click on the Markdown cell and replace the correct answers, as follows:

```{markdown}
- [ ] Original
- [x] Selected answer
```

- [ ] Original
- [x] Selected answer

To save your work use the drop-down menu under `File` and select `Save Notebook` or use the shortcut `CTRL + S`.
33 changes: 33 additions & 0 deletions mrs-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: mrs-env
channels:
- conda-forge
dependencies:
- bokeh
- cmcrameri
- dask
- datashader
- eomaps
- folium
- graphviz
- holoviews
- hvplot
- ipywidgets
- jupyter
- jupyter_bokeh
- mamba
- matplotlib
- numpy
- odc-stac
- pip
- pyproj
- pystac-client
- python=3.10
- rioxarray
- scikit-image
- scipy
- seaborn
- snaphu
- stackstac
- xarray
- pip:
- graphviz

0 comments on commit 5ca9553

Please sign in to comment.