Software Installation Steps#

VS Code#

../_images/vs_code_interface.png

Fig. 2 A representation of VS Code Interface.#

Installing VS Code#

Download VS Code from https://code.visualstudio.com/download and choose your OS (Windows, Mac, or Linux).

../_images/vs_code_installation.png

Fig. 3 A representation of VS Code Installation page.#

Important

Make sure you are installing Visual Studio Code, and NOT Visual Studio.

Installing Extensions#

The Python Extension#

The Python extension in VS Code is not Python itself, but rather a tool that enhances code development with features like syntax highlight, smart code suggestions, integrated debugging, and linting to catch errors early. It also supports virtual environments which we will need to manage our project dependencies.

  1. Open VS Code and click on the extensions button in the activity bar on the left side of the screen.

  2. Search for “Python”

  3. Select the official Python extension and click its “Install” button.

../_images/python_extension_installation.png

Fig. 4 A representation of Python Extension Installation steps on VS Code.#

The Live Share Extension#

Live Share extension in VS Code enables real-time collaboration by allowing multiple developers to share and edit code simultaneously within the same environment. This will be especially useful if you attend a remote help session.

  1. Open VS Code and click on the extensions button in the activity bar on the left side of the screen.

  2. Search for “Live Share”

  3. Select the official Live Share extension and click its “Install” button.

../_images/live_share_extension.png

Fig. 5 A representation of Live Share Extension on VS Code.#

Starting a Collaborative Session#

  1. From the VS Code menu bar, go to File -> Open Folder… to open the folder containing the files that you would like to collaborate on.

  2. Click on the Live Share icon in the activity bar.

    ../_images/live_share_collab_steps.png

    Fig. 6 A representation of Live Share Collaboration Steps on VS Code.#

  3. Click on the “Share” button.

    ../_images/live_share_collab_steps2.png

    Fig. 7 A representation of Live Share Collaboration Steps on VS Code.#

  4. You will need to sign in using a Microsoft account (e.g. your Purdue career account).

  5. A link will be copied to your clipboard that you can send to a member of the teaching team.

  6. The team member will click on the “Join” button and enter the link shared with them. Once it connects, they will be able to see and edit your files along with you in real-time.

    ../_images/live_share_collab_steps3.png

    Fig. 8 A representation of Live Share Collaboration Steps on VS Code.#

    ../_images/live_share_collab_steps4.png

    Fig. 9 A representation of Live Share Collaboration Steps on VS Code.#

Python (the traditional way)#

  1. Open the Microsoft store

  2. Search for Python 3.13

  3. Click on “Get” to install the Python 3.13 interpreter

../_images/ms_store_py_install.png

Fig. 12 A representation of Python Installation page on Windows Store.#

  1. Go to https://www.python.org/downloads/

  2. Download and install the latest release

../_images/python_installation_mac.png

Fig. 13 A representation of Python Installation page on Mac.#

../_images/python_installation_mac_1.png

Fig. 14 A representation of Python Installation application on Mac.#

../_images/python_installation_mac_2.png

Fig. 15 A representation of Python Installation application on Mac.#

Installing Python

On Ubuntu, I recommend installing Python via the deadsnakes ppa. You can find details of the ppa here: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa. To install Python 3.13 enter the following in a terminal.

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.13

For other Linux systems, use their package manager or, if that Python version is older than \(3.13\), download and install directly from python.org. Ask if you would like assistance setting up Python in a virtual environment.

Also note that you may need to type python3.13 whenever I type python in the lecture videos.