Skip to content

Commit e53c694

Browse files
Added ToC, used nicer html formatter
1 parent 07e0d48 commit e53c694

File tree

3 files changed

+8137
-117
lines changed

3 files changed

+8137
-117
lines changed

01-2020-11-06/assignment_01.html

Lines changed: 8075 additions & 97 deletions
Large diffs are not rendered by default.

01-2020-11-06/assignment_01_img_encoded.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
<!-- omit in toc -->
12
# Assignment 1
23

4+
_Due: 13.11.2020_
35
1. Please follow the instructions below to install Conda.
46
2. Get familiar with the Shell-Commands `cd`, `ls`, `pwd` and `mkdir`.
57
3. Create a Conda environment called `fupy` with the packages `python=3.8` and `jupyterlab` installed.
@@ -8,6 +10,25 @@ All information needed should be available below.
810

911
If you should have any Questions don't hesitate to state them in our Webex-Teams channel!
1012

13+
<!-- omit in toc -->
14+
# Table of Contents
15+
- [Conda Installation](#conda-installation)
16+
- [Windows](#windows)
17+
- [macOS](#macos)
18+
- [Linux](#linux)
19+
- [Download](#download)
20+
- [Installation](#installation)
21+
- [Terminal Cheat Sheet](#terminal-cheat-sheet)
22+
- [`ls`](#ls)
23+
- [`pwd`](#pwd)
24+
- [`cd`](#cd)
25+
- [`mkdir`](#mkdir)
26+
- [Conda Cheat Sheet](#conda-cheat-sheet)
27+
- [Creating an Conda environment from scratch](#creating-an-conda-environment-from-scratch)
28+
- [Installing packages](#installing-packages)
29+
- [Deleting environment](#deleting-environment)
30+
- [Creating an Conda environment from an environment.yml file](#creating-an-conda-environment-from-an-environmentyml-file)
31+
1132
# Conda Installation
1233

1334
We use Python throughout the class. We further use some additional packages, installing them individually can be unnecessarily complicated. Hence, we recommend installing Miniconda, which comes with Python (please use 3.x) and the package manager Conda.
@@ -7916,7 +7937,7 @@ Gu6kV2xOCfPeazKnHAMAANP0An7K8ZapUb7rF3QPvRcAANDXG+nZd+5fZgd8oJAHAICHty/i90Z+
79167937

79177938
_Note: If you accidentally didn't initialize Conda you can do that by executing `~/miniconda3/bin/conda init`_
79187939

7919-
## Terminal Cheat Sheet
7940+
# Terminal Cheat Sheet
79207941

79217942
- Hint: You can paste commands into the terminal using:
79227943
- Windows: `CTRL + V`
@@ -7926,7 +7947,7 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
79267947
- Hint: You can autocomplete commands and arguments using `TAB`.
79277948
- Hint: You can interrupt command execution using `CTRL + C` (e.g. if Conda gets stuck)
79287949

7929-
### `ls`
7950+
## `ls`
79307951

79317952
- `ls` lists all files and directories in your current path.
79327953

@@ -7935,7 +7956,7 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
79357956
Desktop Documents Downloads miniconda3 Music Pictures Public Uni Videos
79367957
```
79377958

7938-
### `pwd`
7959+
## `pwd`
79397960

79407961
- `pwd` returns your current path. Very useful if you should get lost!
79417962

@@ -7944,7 +7965,7 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
79447965
/home/aleks
79457966
```
79467967

7947-
### `cd`
7968+
## `cd`
79487969

79497970
- `cd` (change directory) moves you into a specified directory
79507971
- `..` states "one directory above". Thus by using `cd ..` you can switch to one directory above.
@@ -8000,7 +8021,7 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
80008021
/home/aleks
80018022
```
80028023

8003-
### `mkdir`
8024+
## `mkdir`
80048025

80058026
- `mkdir` stands for _make directory_.
80068027

@@ -8043,7 +8064,7 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
80438064
/home/aleks/dir with spaces
80448065
```
80458066

8046-
## Conda Cheat Sheet
8067+
# Conda Cheat Sheet
80478068

80488069
- As mentioned before Conda allows us to install Python packages easily, while making sure the package versions work well with another.
80498070

@@ -8056,7 +8077,7 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
80568077
conda config --add channels conda-forge
80578078
```
80588079

8059-
### Creating an Conda environment from scratch
8080+
## Creating an Conda environment from scratch
80608081

80618082
- Once you have installed the Conda package manager, we create a virtual environment by installing Python and all other packages of interest.
80628083

@@ -8074,7 +8095,7 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
80748095
```
80758096
- After doing this you can see the changed environment in your Shells' prefix.
80768097

8077-
### Installing packages
8098+
## Installing packages
80788099

80798100
- With the right environment activated you can use `conda install package_1 package_2 [..]` to install packages:
80808101

@@ -8084,13 +8105,13 @@ _Note: If you accidentally didn't initialize Conda you can do that by executing
80848105

80858106
- Conda will automatically install all packages on which the chosen ones depend.
80868107

8087-
### Deleting environment
8108+
## Deleting environment
80888109

80898110
```
80908111
conda env remove -n environment_name
80918112
```
80928113

8093-
### Creating a conda environment from an environment.yml file
8114+
## Creating an Conda environment from an environment.yml file
80948115

80958116
_Note: this will be used later in the lecture and is not part of the assignment_
80968117

01-2020-11-06/assignment_01_img_from_path.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
<!-- omit in toc -->
12
# Assignment 1
23

4+
_Due: 13.11.2020_
35
1. Please follow the instructions below to install Conda.
46
2. Get familiar with the Shell-Commands `cd`, `ls`, `pwd` and `mkdir`.
57
3. Create a Conda environment called `fupy` with the packages `python=3.8` and `jupyterlab` installed.
@@ -8,6 +10,25 @@ All information needed should be available below.
810

911
If you should have any Questions don't hesitate to state them in our Webex-Teams channel!
1012

13+
<!-- omit in toc -->
14+
# Table of Contents
15+
- [Conda Installation](#conda-installation)
16+
- [Windows](#windows)
17+
- [macOS](#macos)
18+
- [Linux](#linux)
19+
- [Download](#download)
20+
- [Installation](#installation)
21+
- [Terminal Cheat Sheet](#terminal-cheat-sheet)
22+
- [`ls`](#ls)
23+
- [`pwd`](#pwd)
24+
- [`cd`](#cd)
25+
- [`mkdir`](#mkdir)
26+
- [Conda Cheat Sheet](#conda-cheat-sheet)
27+
- [Creating an Conda environment from scratch](#creating-an-conda-environment-from-scratch)
28+
- [Installing packages](#installing-packages)
29+
- [Deleting environment](#deleting-environment)
30+
- [Creating a conda environment from an environment.yml file](#creating-a-conda-environment-from-an-environmentyml-file)
31+
1132
# Conda Installation
1233

1334
We use Python throughout the class. We further use some additional packages, installing them individually can be unnecessarily complicated. Hence, we recommend installing Miniconda, which comes with Python (please use 3.x) and the package manager Conda.
@@ -79,7 +100,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
79100
80101
![](img/conda-linux-prompt.png)
81102
82-
## Terminal Cheat Sheet
103+
# Terminal Cheat Sheet
83104
84105
- Hint: You can paste commands into the terminal using:
85106
- Windows: `CTRL + V`
@@ -89,7 +110,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
89110
- Hint: You can autocomplete commands and arguments using `TAB`.
90111
- Hint: You can interrupt command execution using `CTRL + C` (e.g. if Conda gets stuck)
91112
92-
### `ls`
113+
## `ls`
93114
94115
- `ls` lists all files and directories in your current path.
95116
@@ -98,7 +119,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
98119
Desktop Documents Downloads miniconda3 Music Pictures Public Uni Videos
99120
```
100121
101-
### `pwd`
122+
## `pwd`
102123
103124
- `pwd` returns your current path. Very useful if you should get lost!
104125
@@ -107,7 +128,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
107128
/home/aleks
108129
```
109130
110-
### `cd`
131+
## `cd`
111132
112133
- `cd` (change directory) moves you into a specified directory
113134
- `..` states "one directory above". Thus by using `cd ..` you can switch to one directory above.
@@ -163,7 +184,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
163184
/home/aleks
164185
```
165186
166-
### `mkdir`
187+
## `mkdir`
167188
168189
- `mkdir` stands for _make directory_.
169190
@@ -206,7 +227,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
206227
/home/aleks/dir with spaces
207228
```
208229
209-
## Conda Cheat Sheet
230+
# Conda Cheat Sheet
210231
211232
- As mentioned before Conda allows us to install Python packages easily, while making sure the package versions work well with another.
212233
@@ -219,7 +240,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
219240
conda config --add channels conda-forge
220241
```
221242
222-
### Creating an Conda environment from scratch
243+
## Creating an Conda environment from scratch
223244
224245
- Once you have installed the Conda package manager, we create a virtual environment by installing Python and all other packages of interest.
225246
@@ -237,7 +258,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
237258
```
238259
- After doing this you can see the changed environment in your Shells' prefix.
239260
240-
### Installing packages
261+
## Installing packages
241262
242263
- With the right environment activated you can use `conda install package_1 package_2 [..]` to install packages:
243264
@@ -247,13 +268,13 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
247268
248269
- Conda will automatically install all packages on which the chosen ones depend.
249270
250-
### Deleting environment
271+
## Deleting environment
251272
252273
```
253274
conda env remove -n environment_name
254275
```
255276
256-
### Creating a conda environment from an environment.yml file
277+
## Creating a conda environment from an environment.yml file
257278
258279
_Note: this will be used later in the lecture and is not part of the assignment_
259280

0 commit comments

Comments
 (0)