Python integration with git

As we have installed download git-bash, vscode and python. Now its time to integrate python git-bash with vscode.

  • Open the vscode
  • Click on extensions icon and type python in search box and select very first option of python which is recommended by Microsoft select and click on install button.
  • Open the vscode
  • Click on extensions icon and type python in search box and select very first option of python which is recommended by Microsoft select and click on install button.
  • Now close all of the screens by click on X button, and press ”cntrl + ~” key to open terminal .
  • You can see in terminal, it will be displaying as bash. By default our shell is power shell.
  • Here you can change your color theme by going to file>preferences>color themes.

Why we chose vscode only?

Like as we have already discussed there are lots of other IDE available, which are quite easy to use like pycharm or Jupiter notebook. But in normal scenario, we create a file in file explorer then create .txt file and change extension into .py and open them in our IDE. This is not a good practice for professional programmers. We are using vscode so that we can create file using linux terminal command and to save time from traditional scenario. linux is easy to use and friendly for professional programmers and gives you full control to use your pc And all the users can easily use in any Os. All of the commands will be same.

  • Like following example, We changed our drive by cd command then created test.py file and running my file test.py. we will cover all commands in upcoming chapters.

It is important to learn linux because every IT professional should have knowledge of linux basic commands. Most of the IT companies use linux in their companies.