From 946efdcaf21864d69bf4e34d039ce4d19ba5c9f7 Mon Sep 17 00:00:00 2001 From: eelucio Date: Mon, 1 Jul 2024 13:58:50 +0000 Subject: [PATCH] deploy: 0633516de6306f34d0cf1d3bae5562b720054b25 --- Freva_Workshop_2024/day 2/index.slides.html | 1598 +------------------ 1 file changed, 36 insertions(+), 1562 deletions(-) diff --git a/Freva_Workshop_2024/day 2/index.slides.html b/Freva_Workshop_2024/day 2/index.slides.html index d0e1c36..2bacef8 100644 --- a/Freva_Workshop_2024/day 2/index.slides.html +++ b/Freva_Workshop_2024/day 2/index.slides.html @@ -6,7 +6,7 @@ Day 2 - Introduction to Freva Plugins slides @@ -7441,7 +7441,7 @@
@@ -7536,1538 +7536,6 @@

Structure of a Plugin: The tool *caveat: we encourage free software -

- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @@ -9166,14 +7634,15 @@

Gitlab and Freva: @@ -9184,10 +7653,12 @@

Gitlab and Freva: location of @@ -9418,7 +7889,7 @@

2. PyCharm freva dev -

Image depicting a list of installed PyCharm plugins, with the "Remote Development Gateway" being installed and enabled.

+

Image depicting a list of installed PyCharm plugins, with the "Remote Development Gateway" being installed and enabled.

@@ -9434,7 +7905,7 @@

2. PyCharm freva dev -

Image depiciting the welcome screen of PyCharm Professional, with the "Remote Development" Tab highlighted using red arrows.

+

Image depiciting the welcome screen of PyCharm Professional, with the "Remote Development" Tab highlighted using red arrows.

@@ -10372,18 +8843,18 @@

Activate Environment

More flexible approach via Makefile

We can define a Makefile as below and then after definition of environment.yml, install all the dependencies listed above via make commands. But first and foremost, we need to ensure, we have make installed on our machine.

env:
-    @# Installs a conda environment with R and the IDF package
-    @if [ -d "./plugin_env" ]; then \
-    	rm -rf ./plugin_env; \
-    fi
-    conda env create --prefix ./plugin_env -f environment.yml --force
-    Rscript -e 'install.packages("IDF", repos="https://CRAN.R-project.org/")'
+	@# Installs a conda environment with R and the IDF package
+	@if [ -d "./plugin_env" ]; then \
+		rm -rf ./plugin_env; \
+	fi
+	conda env create --prefix ./plugin_env -f environment.yml --force
+	Rscript -e 'install.packages("IDF", repos="https://CRAN.R-project.org/")'
 cartopy:
-    @# Download various cartopy shape-files
-    @if [ -d "./cartopy" ]; then \
-    	rm -rf ./cartopy; \
-    fi
-    ./plugin_env/bin/python3 assets/cartopy_download.py physical cultural
+	@# Download various cartopy shape-files
+	@if [ -d "./cartopy" ]; then \
+		rm -rf ./cartopy; \
+	fi
+	./plugin_env/bin/python3 assets/cartopy_download.py physical cultural
 .PHONY: env cartopy
 
    @@ -10561,7 +9032,10 @@

    Plug a tool into Freva