# Installation of Python (SS22) In this lecture we use Python as our programming language. Download the installer here: * [Windows (64-bit)](https://www.python.org/ftp/python/3.9.7/python-3.9.7-amd64.exe) * [Windows (32-bit)](https://www.python.org/ftp/python/3.9.7/python-3.9.7.exe) * [MacOSX](https://www.python.org/ftp/python/3.9.7/python-3.9.7-macos11.pkg) >If you use Linux type the following in the command Line: >``$ sudo apt-get update`` >``$ sudo apt-get install python3.9`` 1. Open the downloaded Python installer. **Make sure to check the "Add Python 3.9 to PATH" mark!** ![](https://i.imgur.com/KGl4G4R.png) 2. Klick in Install Now. This may take a while. ![](https://i.imgur.com/j4YtFCJ.png) 3. To finish the installation click "Close". ![](https://i.imgur.com/hHJR6TZ.png) To check if you successfully installed Python open up a new Command Prompt Window (in MacOSX or Linux a new Terminal). For that press the Windows key <kbd>![](http://i.stack.imgur.com/T0oPO.png)</kbd> and enter `cmd` and hit enter. > For MacOSX press <kbd>&#8984;</kbd> and enter `Terminal` > For Linux press the "Super key" and enter `Terminal` A new Command Prompt window opens up which should look something like this: ![](https://i.imgur.com/L6ffCwm.png) Next enter ``python --version`` in the Command Prompt and hit enter. > For MacOSX and Linux enter ``python3 --version`` and hit enter. > ![](https://i.imgur.com/Gga8Q60.png) You should see the currently installed version of Python. # Installation of Jupyter Lab In the tutorials we use Jupyter Lab for the presentation to install it open up a Command Prompt window (or Terminal). Enter ``pip install jupyterlab`` in the Command Prompt > For MacOSX and Linux enter > ``$ pip3 install jupyterlab`` > ![](https://i.imgur.com/yOIycMj.png) To open Jupyter lab type ``jupyter lab`` in your Command Prompt. A new browser window pops up with jupyter lab. Don't close your Command Prompt while working in jupyter lab. ([Here](https://jupyterlab.readthedocs.io/en/latest/user/interface.html) is the documentation of the Jupyter Lab Interface and how to use it) # IDE To write your own python code outside jupyter lab you can use any texeditor but we recommend to use an IDE (integrated development enviornment) which provides better syntax highlighting, text editing, debugging and many other helpful features. Some common IDEs: * [Visual Studio Code](https://code.visualstudio.com/) (recommended) * [Pycharm](https://www.jetbrains.com/de-de/pycharm/) * [Sublime Text](https://www.sublimetext.com/) # Discord For the question sessions and code reviews we use [Discord](https://discord.com/download). There is an in-browser version, but we highly recommend installing the desktop version, as it supports more features and options. After Installing Discord and setting up your account you can join our server through the following Link: https://discord.gg/UGSDbsz Make sure your microphone/speaker/screen sharing/webcam (webcam is only needed during code reviews) work with discord. [Here](https://support.discord.com/hc/de/articles/360045138571-Beginner-s-Guide-to-Discord) is a tutorial. When you first join the discord server you see the "groupselection" textchannel. Click on the green mark to select that you attend the course "Informatics 2". ![](https://i.imgur.com/UGNuZX6.png) After that you have been granted the correct student role and you should see the following channels on the left side of discord: ![](https://i.imgur.com/ibXLIud.png) Those channels which are marked with a "#" symbol are text channels only (see 1, 2) and those channels with the "&#128266;" symbol are voice channels only (see 3, 4). 1. The "infos" text channel is used by the tutors to communicate with students. (This is a read-only channel) 2. The "chat" text channel can be used by students to ask questions during question hour. 3. The "Lobby" voice channel is used by students to wait for their personal talk with a tutor, for example code reviews, very specific questions that can't be answerd in the TC Forum/question hour, ... (students have to enter this channel so tutors can see and move them to their private room) 4. The "TUTORIEN" voice channels are used by the tutors for question hours (you can join them during question hour)