How to install Algo VSCode onto Mac OS


Vsevolod Karpenko
Last Updated: 1 month 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 masOS it is:

  • minimum - macOS Catalina 15+

    • supported - 10.15 Catalina +, 11 Big Sur and 12 Monterey

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.

  • Disable the antivirus, and if there is - its extension in the browser

To install Algo VSCode, it is necessary to disable all antiviruses, because they can block downloading and installing packages necessary for the program to work.

Make sure that only 1 (one) antivirus is installed on your PC in order to avoid conflicts of antivirus software among themselves and their impact on the operation of the entire computer as a whole.

If your antivirus continues to run in the background when in off mode, such as for example: Kaspersky, Avast, McAfee, 360+, then try the following:

1. Adding folders to antivirus exceptions

  • Add the Downloads folder to the antivirus exceptions before you start downloading the installer;

    • download the program and install the program;

    • after the installation is complete, add the installation file to the antivirus exceptions;

    • check the operation of the program. If everything works correctly, you can delete the Downloads folder from the antivirus exceptions.

2. Complete removal of the antivirus

3. Create a new account with a separate desktop in which the antivirus will not be used


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, find the file and open the folder with the installer and start its execution by double-clicking. Or run the installation directly from the browser's downloads panel.

Screen_Shot_2022-07-28_at_14.50.27.png

  • You will see a notification that the author of the application is an unidentified developer.

(screenshot)

  • Click OK and go to System Preferences

Screen_Shot_2022-08-03_at_17.17.00.png

  • Select the "Security & Privacy" section.

Screen_Shot_2022-08-03_at_17.19.16.png

 

Note: If you have the OS Ventura or higher, please go to System settings-Privacy and Security-Security.

Chose: Allow applications downloaded from App Store and identified developers.

 

111.png

112.png

 

  • On the "General" tab, you will see a notification about permission to use applications. Click on the lock and enter the PC password if the system requests it. After that, click "Confirm login".

mceclip0.png

  • Run the algopython.pkg installer again and select "Open".

Screen_Shot_2022-08-03_at_16.49.44.png

  • At the first step of installation, click “Continue”.

Screen_Shot_2022-08-03_at_16.04.33.png

  • In the second step of installation, first select by pressing “Install for me only", then click “Continue".

Screen_Shot_2022-08-03_at_16.04.42.png

  • In the next step, click “Install” and wait for the installation to finish.

Screen_Shot_2022-08-03_at_16.04.53.png

Screen_Shot_2022-08-03_at_16.05.01.png

  • Close the installer and go to the desktop. In the future, the Algo VSCode program can be opened via a shortcut on the desktop.

Screen_Shot_2022-08-03_at_14.18.10.png


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 Finder, search all over the computer, type - Algorithmika in the search bar, and delete all the files found.

  • Next, look for the miniconda and VSCode folders.

  • Remove the program shortcut from the desktop, if it remains.

  • С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.

Screen_Shot_2022-08-03_at_17.00.04.png

  • 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?