You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01-2020-11-06/assignment_01_img_encoded.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
+
<!-- omit in toc -->
1
2
# Assignment 1
2
3
4
+
_Due: 13.11.2020_
3
5
1. Please follow the instructions below to install Conda.
4
6
2. Get familiar with the Shell-Commands `cd`, `ls`, `pwd` and `mkdir`.
5
7
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.
8
10
9
11
If you should have any Questions don't hesitate to state them in our Webex-Teams channel!
10
12
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
+
11
32
# Conda Installation
12
33
13
34
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.
Copy file name to clipboardExpand all lines: 01-2020-11-06/assignment_01_img_from_path.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
+
<!-- omit in toc -->
1
2
# Assignment 1
2
3
4
+
_Due: 13.11.2020_
3
5
1. Please follow the instructions below to install Conda.
4
6
2. Get familiar with the Shell-Commands `cd`, `ls`, `pwd` and `mkdir`.
5
7
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.
8
10
9
11
If you should have any Questions don't hesitate to state them in our Webex-Teams channel!
10
12
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
+
11
32
# Conda Installation
12
33
13
34
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
79
100
80
101

81
102
82
-
## Terminal Cheat Sheet
103
+
# Terminal Cheat Sheet
83
104
84
105
- Hint: You can paste commands into the terminal using:
85
106
- Windows: `CTRL + V`
@@ -89,7 +110,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
89
110
- Hint: You can autocomplete commands and arguments using `TAB`.
90
111
- Hint: You can interrupt command execution using `CTRL + C` (e.g. if Conda gets stuck)
91
112
92
-
### `ls`
113
+
## `ls`
93
114
94
115
- `ls` lists all files and directories in your current path.
95
116
@@ -98,7 +119,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
98
119
Desktop Documents Downloads miniconda3 Music Pictures Public Uni Videos
99
120
```
100
121
101
-
### `pwd`
122
+
## `pwd`
102
123
103
124
- `pwd` returns your current path. Very useful if you should get lost!
104
125
@@ -107,7 +128,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
107
128
/home/aleks
108
129
```
109
130
110
-
### `cd`
131
+
## `cd`
111
132
112
133
- `cd` (change directory) moves you into a specified directory
113
134
- `..` 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
163
184
/home/aleks
164
185
```
165
186
166
-
### `mkdir`
187
+
## `mkdir`
167
188
168
189
- `mkdir` stands for _make directory_.
169
190
@@ -206,7 +227,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
206
227
/home/aleks/dir with spaces
207
228
```
208
229
209
-
## Conda Cheat Sheet
230
+
# Conda Cheat Sheet
210
231
211
232
- As mentioned before Conda allows us to install Python packages easily, while making sure the package versions work well with another.
212
233
@@ -219,7 +240,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
219
240
conda config --add channels conda-forge
220
241
```
221
242
222
-
### Creating an Conda environment from scratch
243
+
## Creating an Conda environment from scratch
223
244
224
245
- Once you have installed the Conda package manager, we create a virtual environment by installing Python and all other packages of interest.
225
246
@@ -237,7 +258,7 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
237
258
```
238
259
- After doing this you can see the changed environment in your Shells' prefix.
239
260
240
-
### Installing packages
261
+
## Installing packages
241
262
242
263
- With the right environment activated you can use `conda install package_1 package_2 [..]` to install packages:
243
264
@@ -247,13 +268,13 @@ _(Note that Conda is a part of the Anaconda distribution. If you are already usi
247
268
248
269
- Conda will automatically install all packages on which the chosen ones depend.
249
270
250
-
### Deleting environment
271
+
## Deleting environment
251
272
252
273
```
253
274
conda env remove -n environment_name
254
275
```
255
276
256
-
### Creating a conda environment from an environment.yml file
277
+
## Creating a conda environment from an environment.yml file
257
278
258
279
_Note: this will be used later in the lecture and is not part of the assignment_
0 commit comments