Skip to content

Commit 5ba1ab8

Browse files
Add files via upload
1 parent 3176145 commit 5ba1ab8

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

01-2020-11-06/assignment_01.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ <h1 id="assignment-1">Assignment 1</h1>
3131
<li>Please follow the instructions below to install Conda.</li>
3232
<li>Get familiar with the Shell-Commands <code>cd</code>, <code>ls</code>, <code>pwd</code> and <code>mkdir</code>.</li>
3333
<li>Create a Conda environment called <code>fupy</code> with the packages <code>python=3.8</code> and <code>jupyterlab</code> installed.</li>
34+
<li>Launch the <code>chatbot.py</code> application.</li>
3435
</ol>
3536
<p>All information needed should be available below.</p>
3637
<p>If you should have any Questions don't hesitate to state them in our Webex-Teams channel!</p>
@@ -65,6 +66,12 @@ <h1 id="table-of-contents">Table of Contents</h1>
6566
<li><a href="#creating-an-conda-environment-from-an-environmentyml-file">Creating an Conda environment from an environment.yml file</a></li>
6667
</ul>
6768
</li>
69+
<li><a href="#python">Python</a>
70+
<ul>
71+
<li><a href="#launching-python">Launching Python</a></li>
72+
<li><a href="#launching-an-python-application">Launching an Python Application</a></li>
73+
</ul>
74+
</li>
6875
</ul>
6976
<h1 id="conda-installation">Conda Installation</h1>
7077
<p>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.</p>
@@ -8176,6 +8183,40 @@ <h2 id="creating-an-conda-environment-from-an-environmentyml-file">Creating an C
81768183
<li>
81778184
<p>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.</p>
81788185
</li>
8186+
</ul>
8187+
<h1 id="python">Python</h1>
8188+
<h2 id="launching-python">Launching Python</h2>
8189+
<ul>
8190+
<li>
8191+
<p>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 <code>conda activate environment_name</code>):</p>
8192+
<pre><code><code><div>(fupy) aleks@pc$ python
8193+
Python 3.8.5 (default, Sep 4 2020, 07:30:14)
8194+
[GCC 7.3.0] :: Anaconda, Inc. on linux
8195+
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
8196+
&gt;&gt;&gt;
8197+
</div></code></code></pre>
8198+
</li>
8199+
</ul>
8200+
<h2 id="launching-an-python-application">Launching an Python Application</h2>
8201+
<ul>
8202+
<li>
8203+
<p>Use <code>cd</code>, <code>ls</code> (and <code>pwd</code>) to navigate to the location you created/downloaded a Python file (ending with <code>.py</code>)</p>
8204+
<pre><code><code><div>(fupy) aleks@pc$ ls
8205+
Desktop Documents Downloads Music Pictures Public Uni Videos
8206+
8207+
(fupy) aleks@pc$ cd Uni/abv_dataanalysis_python/01_2020_11_06
8208+
(fupy) aleks@pc$ ls
8209+
chatbot.py
8210+
</div></code></code></pre>
8211+
</li>
8212+
<li>
8213+
<p>Launch it using:</p>
8214+
<pre><code><code><div>(fupy) aleks@pc$ python chatbot.py
8215+
Hi, my name is Vincent.
8216+
What's your name?
8217+
8218+
</div></code></code></pre>
8219+
</li>
81798220
</ul>
81808221

81818222
</body>

0 commit comments

Comments
 (0)