Skip to content

Commit 09ae2cf

Browse files
committed
operators notebook, readme author, conda step-by-step
1 parent 849e49e commit 09ae2cf

14 files changed

+917
-46
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
venv/
22
.venv/
3+
docs/resources/
4+
35
TODOs.md

README.md

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,41 @@
1-
ECOPOM as a research group of the University of Bologna (IT), with Prof. Manfrini and Mengoli giving lectures at the Master Degree course ["*Precision And Sustainable Agriculture (PASA)*"](https://corsi.unibo.it/2cycle/PreciseSustainableAgriculture), engages students with thesis aimimng at developing/testing new AgTech technologies for the Precision Orchard Management (POM).
1+
ECOPOM as a research group of the University of Bologna (IT), with Prof. Manfrini and Mengoli giving lectures at the Master Degree course ["*Precision And Sustainable Agriculture (PASA)*"](https://corsi.unibo.it/2cycle/PreciseSustainableAgriculture), engages students with thesis aiming at developing/testing new AgTech technologies for the Precision Orchard Management (POM).
22

33
To better comprehend those topics, a basic training on Python and automation is given to students. This repository contains the material needed to deepend in this context.
44

55
# How to use this repository
66

77
## 1. install a Virtual Environment Manager
8-
Install any [Virtual Environment Manager](https://dev.to/bowmanjd/python-tools-for-managing-virtual-environments-3bko) (VEM) on your computer. The suggested VEM for beginners is [Anaconda](https://docs.anaconda.com/free/anaconda/install/).\
9-
If you are installing Anaconda use the installer that better fits with your machine *Operating System* (OS) (i.e., *Windows*, *MacOS*, *Linux*, etc).
8+
Install any [Virtual Environment Manager](https://dev.to/bowmanjd/python-tools-for-managing-virtual-environments-3bko) (VEM) on your computer. The suggested VEM for beginners is Anaconda [[Download](https://docs.anaconda.com/free/anaconda/install/)].\
9+
If you are installing Anaconda, use the installer that better fits with your machine *Operating System* (OS) (i.e., *Windows*, *MacOS*, *Linux*, etc).
1010

1111
> **Note:** to install Anaconda you'll be asked to register (it's free).
1212
13-
### 1.1. Create a Virtual Environment (venv)
14-
When creating a [virtual environment](https://realpython.com/python-virtual-environments-a-primer/) with Anandonda, Python gets directly installed inside each *venv*. If you are working with a different VEM such as [*venv*](https://dev.to/bowmanjd/python-tools-for-managing-virtual-environments-3bko#virtualenv) you'll need to [install Python by yourself](https://www.datacamp.com/blog/how-to-install-python).
13+
### step-by-step Anaconda installation
14+
1. surf to the following [link](https://docs.anaconda.com/free/anaconda/install/)
15+
2. Select your Operatoing System and follow the instructions
16+
![](/docs/.readme_images/anaconda-installing-on-windows.png)
17+
18+
> For Windows only:
19+
3. Click on *Anaconda installer*\
20+
![](/docs/.readme_images/anaconda-installer.png)
21+
22+
1. If you want to register, submit your email, otherwise **skip registration**
23+
![](/docs/.readme_images/anaconda-register-or-skip.png)
24+
25+
1. Download the installer
26+
![](/docs/.readme_images/anaconda-download.png)
27+
28+
29+
30+
### 1.1. Create a Virtual Environment (venv) with Python3.10
31+
When creating a [virtual environment](https://realpython.com/python-virtual-environments-a-primer/) with Anaconda, Python gets directly installed inside each *venv*. If you are working with a different VEM such as [*venv*](https://dev.to/bowmanjd/python-tools-for-managing-virtual-environments-3bko#virtualenv) you'll need to [install Python by yourself](https://www.datacamp.com/blog/how-to-install-python).
32+
33+
Both *Anaconda Navigator* and *Anaconda Prompt* can be found in the **START** menù of your computer after the installation.
1534

1635
**A. Create a *venv* using the Anaconda Navigator Graphic User Inteface (GUI)**
1736
Here you can find a comprehensive [documentation](https://docs.anaconda.com/free/navigator/getting-started/) on how to use Anaconda Navigator based on your machine's OS.
1837

19-
**B. Create a *venv* using the Anaconda Prompt**\
38+
**B. Create a *venv* using the Anaconda Prompt** [**recommended**]\
2039
Usually, Anaconda is referred to as `conda`.
2140

2241
create the environment with the **name** you prefer
@@ -31,15 +50,15 @@ More documentation on create, update, remove, and export your conda environments
3150

3251

3352
## 2. install an Integrated Development Environment (IDE)
34-
Install an [Integrated Development Environment](https://realpython.com/python-ides-code-editors-guide/) that could be both a General Editor such as [*Visual Studio Code*](https://code.visualstudio.com/download) (*vscode*) or a Python-Specific Editor as *PyCharm* community edition. We encourage to use *vscode* since it supports many features, plugins and programming languages.
53+
Install an [Integrated Development Environment](https://realpython.com/python-ides-code-editors-guide/) that could be both a General Editor such as [*Visual Studio Code*](https://code.visualstudio.com/download) (*vscode*) or a Python-Specific Editor as *PyCharm* community edition. We encourage to use *vscode* since it supports many features, extension plugins and programming languages (Python, Java, R, C, C++, C#, and so on).
3554

3655
[Here](https://code.visualstudio.com/docs/getstarted/userinterface) you can find some documentation on how to interact with the *vscode* user interface.
3756

3857
![interface](docs/.readme_images/vscode-interface.png)
3958

4059

4160
## 3. Download the repository
42-
A. Open the [GitHub repository](https://github.com/ECOPOM/AgTech_Students_PythonCourse) click on **`<>Code`** (the green appearing button), then **Local** and **Download ZIP**
61+
A. Open the [GitHub repository](https://github.com/ECOPOM/AgTech_Students_PythonCourse) click on **`<>Code`** (the green appearing button in the screenshot below), then **Local** and **Download ZIP**
4362

4463
B. Surf to you Computer's *Downloads* folder, right click on `AgTech_Students_PythonCourse-main.zip` file and extract the folder content into your *Desktop*.
4564

@@ -59,7 +78,6 @@ if `pip` or `pip3` does not appear in the list of installed packages, do the fol
5978

6079
conda install pip
6180

62-
6381
After all, from the Anaconda Prompt do the following:
6482

6583
# change directory to the repository folder
@@ -68,20 +86,23 @@ After all, from the Anaconda Prompt do the following:
6886
# install packages and modules with PIP
6987
pip install -r requirements.txt
7088

89+
> **Note**: the requirements are referring to Python version 3.10.12
90+
7191
### 4.3. use notebook materials
7292

7393
You can either decide to use [notebook](https://realpython.com/jupyter-notebook-introduction/) materials with [*Jupyter Notebooks*](https://jupyter.org/), which is native of anaconda, or by exploiting [vscode jupyter plugin](https://code.visualstudio.com/docs/datascience/jupyter-notebooks) (**recommended**).
7494

75-
![jupyer-plugin](docs/.readme_images/jupyter-plugin.png)
95+
![jupyer-plugin](docs/.readme_images/vscode-jupyter-plugin.png)
7696

7797

7898
**List of notebooks**
7999
| file | topic |
80100
|:---|---|
81101
|*0_ipynb_introduction.ipynb*| Introduction to notebooks|
82-
|*1_native_python_data_structures.ipynb*| Introduction to native Python data structures |
83-
|*2_python_operators.ipynb*| python operators |
84-
|*3_numpy.ipynb*| NumPy arrays |
85-
|*4_pandas.ipynb*| Pandas Dataframes |
86-
|*5_introduction_to_images.ipynb*| Image data introduction |
102+
|*1_python_operators.ipynb*| Python operators: arithmentical, logical, comparative, bitwise, assignment, special |
103+
|*2_native_python_data_structures.ipynb*| Introduction to native Python data structures |
104+
|*3_python_operators.ipynb*| python operators |
105+
|*4_numpy.ipynb*| NumPy arrays |
106+
|*5_pandas.ipynb*| Pandas Dataframes |
107+
|*6_introduction_to_images.ipynb*| Image data introduction |
87108

data/images/sample_image.jpg

45.4 KB
Loading
58.3 KB
Loading
9.36 KB
Loading
Loading
Loading

docs/.readme_images/mirko_piani.png

384 KB
Loading
1.04 KB
Loading

0 commit comments

Comments
 (0)