How to install Algo VSCode into Linux


Vsevolod Karpenko
Last Updated: 3 weeks ago

Python.png

logo_sign_A.png Installation file logo_sign_A.png

The content of the article:


General information and installation requirements


To study Python courses is required to install additional software - the Algo Visual Studio Code editor.

15.pngPlease note that the version of the VS Code program from Algorithmics must be installed on the computers of the student and teacher.

We do not support conducting this course using the original VS Code program, because there is no stable way to install the algopython extension, which allows to integrate the learning platform and the libraries for conducting classes.

This version of the program is designed specifically for classes at Python courses and integrated with the Algorithmic learning platform, and also already contains the necessary libraries for working with tasks.


Installation requirements

  • Please install the programs on your PC in advance

This will allow you to check the operation of the program, as well as contact technical support in case of unexpected problems.

The PC and OS must necessarily match them.

For Windows it is:

  • minimum - Ubuntu 16.04

    • supported - Ubuntu 18.04, Ubuntu 20.04

If the OS version does not meet the requirements prescribed in the instructions, then Algo VSCode will not be installed correctly on your computer and there is a high probability of malfunctions and failures in its operation.

  • The installation must be performed by PC' Administrator

If there are several accounts on the computer, then to install it, you need to log in to the account from which you will work with the program. There will be no access to the installed software in other accounts. That is, if the child has a separate user, then it is necessary to log in under this user.

  • The account name must be entered in Latin

For example: Python. Due to technical features, errors will occur when some functions of the code editor work with a another languages accounts.

  • Check the correctness of the date and time settings on the PC

The correct date and time must be set on your computer, otherwise there will be problems with files savings.


After checking all the points listed above, you can start installing the program.


Step-by-step instructions for installing the program


When starting to install the program, please note that depending on whether you have previously installed the program or you are installing it for the first time, the instructions will differ.

  • If you are installing the program for the first time, follow these instructions:

Initial installation of the program

  • If you reinstall the program, follow these instructions:

Reinstallation of the program


Initial installation of the program

  • Download the installation file by clicking the "Download" button. And then seeing the warning from the browser "Can't scan file for viruses", click: "Download anyway".

Screen_Shot_2022-07-28_at_14.20.52.png

Screen_Shot_2022-07-28_at_14.23.35.png

  • Downloading may take time. After the file is downloaded, go to the Downloads folder.

  • Press F4 on the keyboard (possibly Cmd+F4 or Win+F4) and a terminal window will open. If the terminal window does not open using the keyboard shortcut, right-click inside the window with the folder and select “Open in terminal” from the drop-down menu.

mceclip2.png
mceclip3.png

  • Type in the terminal’s command line

  /bin/bash linux-installer-64-v4.sh

mceclip5.png

  • Wait for the installer to finish. When the installation is complete, the terminal will read "*****ALGORITMIKA INSTALLATION COMPLETED*****" and the line where you enter the next command will become active. Close the terminal by clicking on the plus sign.

  • Go to the desktop and find the “algovscode.desktop” shortcut. Open it by double-clicking. In the warning that appears, click “Trust and run” (you will not see this warning again on subsequent launches).

  • After that, the Visual Studio Code code editor will open, and the shortcut on the desktop will change to the logo of the Algorithmics Python course and it will be called “Algo VSCode.” 


Reinstallation of the program

If you already had the Algo VSCode program installed earlier, then before installing the new version, the old one must be completely removed. I.e., it is necessary to perform a "clean" reinstallation of the program.

This is necessary so that the old program files do not conflict with the new ones and the installation will goes correct.

For this:

  • Delete the program in the standard way.

  • Go to the home folder:

    • delete the vs code folder;

      • delete the folder in the miniconda folder.

  • Сlean the "Trash".

  • Download the installer.

  • Installing the program again according to the instructions above: Initial installation of the program


Check of correctness of the program installation and its workability


Now we need to make sure that the installed program is working correctly.

For this:

  • Run the program.

  • Make sure that when you start the program, you see the login window to the platform.

Screen_Shot_2022-07-28_at_16.20.22.png

  • On the "Extensions" tab, check that you have only two extensions installed: algopython and Python from Microsoft.

Screen_Shot_2022-07-28_at_16.22.41.png

  • The version of the algopython extension must be at least

    v20220718.163731.0

Screen_Shot_2022-07-28_at_16.25.32.png

  • Compare that the program uses the correct Python code interpreter. Check it in the lower left corner of the program. There should be information with the interpreter version number.
    The extension version must be 3.7.7 64-bit

Screen_Shot_2022-07-28_at_16.37.54.png

  • Next step to check the correct operation of the editor.
    Create a file via File -> New file. And type:

print(‘Hello, world!’)
  • In order for Algo VSCode to recognize the code as Python, we need to save it to the .py extension. To do this, select File -> Save as:

pasted_image_0__15_.png

  • To save a file in a Python extension, you can specify an extension .py in the name of the saved file.

(screenshot)

  • Or you can select in the line “The file type is ” Python, then the extension.py will be applied to our file automatically.

(screenshot)

  • After saving the file as .py, VS Code recognizes the code as Python and you will see syntax highlighting:

Screen_Shot_2022-07-28_at_17.43.04.png

  • To run the code, press the F5 key or the code launch button in the application.

Screen_Shot_2022-07-28_at_17.44.09.png

  • Upon successful launch of the program, you will see in the terminal the output of the text enclosed in the print function. In our case, it's hello, world!

Screen_Shot_2022-07-28_at_17.48.36.png


Done! 💜

The program is ready to work.

If you will have any difficulties, please write to us - to the Algorithmics technical support.

Instruction: How can I contact technical support and what questions can I ask?

We will try to help you!


Was this article helpful?