Skip to content

Commit 8fdb9df

Browse files
Added chatbot task
1 parent 5ba1ab8 commit 8fdb9df

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

01-2020-11-06/assignment_01_img_encoded.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ _Due: 13.11.2020_
55
1. Please follow the instructions below to install Conda.
66
2. Get familiar with the Shell-Commands `cd`, `ls`, `pwd` and `mkdir`.
77
3. Create a Conda environment called `fupy` with the packages `python=3.8` and `jupyterlab` installed.
8+
4. Launch the `chatbot.py` application.
89

910
All information needed should be available below.
1011

@@ -28,6 +29,9 @@ If you should have any Questions don't hesitate to state them in our Webex-Teams
2829
- [Installing packages](#installing-packages)
2930
- [Deleting environment](#deleting-environment)
3031
- [Creating an Conda environment from an environment.yml file](#creating-an-conda-environment-from-an-environmentyml-file)
32+
- [Python](#python)
33+
- [Launching Python](#launching-python)
34+
- [Launching an Python Application](#launching-an-python-application)
3135

3236
# Conda Installation
3337

@@ -8126,3 +8130,39 @@ _Note: this will be used later in the lecture and is not part of the assignment_
81268130
- Further you may use the Python module `pip` for downloading additional packages from PyPi, the Python Package Index.
81278131

81288132
- Packaging in Python is still not yet completely free of pain, hence it is recommended to stay - if possible - within one realm (in our case Conda!), when you start to build more complex and sophisticated software.
8133+
8134+
# Python
8135+
8136+
## Launching Python
8137+
8138+
- From your newly created conda environment you can launch the Python interpreter using (make sure, that you are in the right conda environment! Reminder: You can change the enviroment using `conda activate environment_name`):
8139+
8140+
```
8141+
(fupy) aleks@pc$ python
8142+
Python 3.8.5 (default, Sep 4 2020, 07:30:14)
8143+
[GCC 7.3.0] :: Anaconda, Inc. on linux
8144+
Type "help", "copyright", "credits" or "license" for more information.
8145+
>>>
8146+
```
8147+
8148+
## Launching an Python Application
8149+
8150+
- Use `cd`, `ls` (and `pwd`) to navigate to the location you created/downloaded a Python file (ending with `.py`)
8151+
8152+
```
8153+
(fupy) aleks@pc$ ls
8154+
Desktop Documents Downloads Music Pictures Public Uni Videos
8155+
8156+
(fupy) aleks@pc$ cd Uni/abv_dataanalysis_python/01_2020_11_06
8157+
(fupy) aleks@pc$ ls
8158+
chatbot.py
8159+
```
8160+
8161+
- Launch it using:
8162+
8163+
```
8164+
(fupy) aleks@pc$ python chatbot.py
8165+
Hi, my name is Vincent.
8166+
What's your name?
8167+
8168+
```

01-2020-11-06/assignment_01_img_from_path.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ _Due: 13.11.2020_
55
1. Please follow the instructions below to install Conda.
66
2. Get familiar with the Shell-Commands `cd`, `ls`, `pwd` and `mkdir`.
77
3. Create a Conda environment called `fupy` with the packages `python=3.8` and `jupyterlab` installed.
8+
4. Launch the `chatbot.py` application.
89

910
All information needed should be available below.
1011

@@ -28,6 +29,9 @@ If you should have any Questions don't hesitate to state them in our Webex-Teams
2829
- [Installing packages](#installing-packages)
2930
- [Deleting environment](#deleting-environment)
3031
- [Creating a conda environment from an environment.yml file](#creating-a-conda-environment-from-an-environmentyml-file)
32+
- [Python](#python)
33+
- [Launching Python](#launching-python)
34+
- [Launching an Python Application](#launching-an-python-application)
3135

3236
# Conda Installation
3337

@@ -289,3 +293,39 @@ _Note: this will be used later in the lecture and is not part of the assignment_
289293
- Further you may use the Python module `pip` for downloading additional packages from PyPi, the Python Package Index.
290294
291295
- Packaging in Python is still not yet completely free of pain, hence it is recommended to stay - if possible - within one realm (in our case Conda!), when you start to build more complex and sophisticated software.
296+
297+
# Python
298+
299+
## Launching Python
300+
301+
- From your newly created conda environment you can launch the Python interpreter using (make sure, that you are in the right conda environment! Reminder: You can change the enviroment using `conda activate environment_name`):
302+
303+
```
304+
(fupy) aleks@pc$ python
305+
Python 3.8.5 (default, Sep 4 2020, 07:30:14)
306+
[GCC 7.3.0] :: Anaconda, Inc. on linux
307+
Type "help", "copyright", "credits" or "license" for more information.
308+
>>>
309+
```
310+
311+
## Launching an Python Application
312+
313+
- Use `cd`, `ls` (and `pwd`) to navigate to the location you created/downloaded a Python file (ending with `.py`)
314+
315+
```
316+
(fupy) aleks@pc$ ls
317+
Desktop Documents Downloads Music Pictures Public Uni Videos
318+
319+
(fupy) aleks@pc$ cd Uni/abv_dataanalysis_python/01_2020_11_06
320+
(fupy) aleks@pc$ ls
321+
chatbot.py
322+
```
323+
324+
- Launch it using:
325+
326+
```
327+
(fupy) aleks@pc$ python chatbot.py
328+
Hi, my name is Vincent.
329+
What's your name?
330+
331+
```

0 commit comments

Comments
 (0)