codexmirabilis / se1-tutorial

Basic tutorial of Git under VS Code from the Software Engineering I module of the Certification as Artificial Intelligence Engineer from Digethic GmbH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-template

Precondition: Windows users can follow the official microsoft tutorial to install python, git and vscode here:

Visual Studio Code

This repository is optimized for Visual Studio Code which is a great code editor for many languages like Python and Javascript. The introduction videos explain how to work with VS Code. The Python tutorial provides an introduction about common topics like code editing, linting, debugging and testing in Python. There is also a section about Python virtual environments which you will need in development. There is also a Data Science section showing how to work with Jupyter Notebooks and common Machine Learning libraries.

The .vscode directory contains configurations for useful extensions like GitLens and Python. When opening the repository, VS Code will open a prompt to install the recommended extensions.

Development Setup

Open the integrated terminal and run the setup script for your OS (see below). This will install a Python virtual environment with all packages specified in requirements.txt.

Linux and Mac Users

  1. run the setup script: ./setup.sh or sh setup.sh
  2. activate the python environment: source .venv/bin/activate
  3. run example code: python src/hello.py
  4. install new dependency: pip install sklearn
  5. save current installed dependencies back to requirements.txt: pip freeze > requirements.txt

Windows Users

  1. run the setup script .\setup.ps1
  2. activate the python environment: .\.venv\Scripts\Activate.ps1
  3. run example code: python src/hello.py
  4. install new dependency: pip install sklearn
  5. save current installed dependencies back to requirements.txt: pip freeze > requirements.txt

Troubleshooting:

About

Basic tutorial of Git under VS Code from the Software Engineering I module of the Certification as Artificial Intelligence Engineer from Digethic GmbH


Languages

Language:PowerShell 57.0%Language:Shell 36.4%Language:Python 6.6%