Course Software#

VS Code#

../../_images/vs_code_interface.png

Fig. 5 A screenshot of the 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. 6 A screenshot of the VS Code Installation page.#

Important

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

Installing the Python Extension#

The Python extension in VS Code is useful because it enhances code development with features like syntax highlight, smart code suggestions, integrated debugging, and linting to catch errors early. It also supports virtual environments and Jupyter Notebooks, making it a comprehensive tool for Python programming.

  1. Open VS Code and go to the extensions tab on the left side of the screen.

  2. Search for “Python”

  3. Install the official Python extension published by Microsoft.

../../_images/python_extension_installation.png

Fig. 7 A screenshot of highlighting the Python extension installation steps in VS Code.#

Note

Note that installing the Python extension does not install the Python interpreter itself. You will need to install Python separately as described in the Python.

Installing the Live Share Extension#

The Live Share extension in VS Code enables real-time collaboration by allowing multiple developers to share and edit code simultaneously within the same environment. We recommend using Live Share for team tasks in this course.

  1. Open VS Code and go to the extensions tab on the left side of the screen.

  2. Search for “Live Share”

  3. Install the official Live Share extension published by Microsoft.

../../_images/live_share_extension.png

Fig. 8 A screenshot highlighting the Live Share extension installation steps in VS Code.#

Starting a Collaborative Session#

  1. Open a file or folder that you would like to collaborate on in VS Code.

  2. Click on the Live Share button in the left-hand bar.

    ../../_images/live_share_collab_steps.png

    Fig. 9 A screenshot highlighting the Live Share button in VS Code.#

  3. Click on the Share (Read/Write) button.

    ../../_images/live_share_collab_steps2.png

    Fig. 10 A screenshot highlighting Live Share’s Share (Read/Write) button in VS Code.#

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

  5. A link will be copied to your clipboard that you can send to your team members to begin collaborating.

  6. Your team members will click on the Join button and enter the link you shared with them in the pop-up text box. 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. 11 A screenshot highlighting Live Share’s Join button in VS Code.#

    ../../_images/live_share_collab_steps4.png

    Fig. 12 A screenshot highlighting Live Share’s collaboration URL text field in VS Code.#

Python#

Python is a widely used free and open-source general purpose programming language. It is known for its ease of use and extensive library support, making it a great choice for beginners and experts alike. Before you can start running Python code, you will need to install the Python interpreter on your system.

Installing Python (the modern way)#

Astral’s uv tool is used to manage modern Python environments. Follow the steps below to install uv and Python on your system. You can read more about uv at https://docs.astral.sh/uv/

  1. From the VS Code menu bar, go to Terminal -> New Terminal to open a terminal window in VS Code. Then run the appropriate command(s) below in the terminal to install uv.

    Install uv for Mac OS/Linux.

    curl -LsSf https://astral.sh/uv/install.sh | sh
    

    Or, if that command doesn’t work, try the following:

    wget -qO- https://astral.sh/uv/install.sh | sh
    
    1. Install uv for Windows.

      powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
      
    2. After installation, set the execution policy for PowerShell scripts to RemoteSigned by running the following command in your PowerShell terminal. This allows you to run locally created scripts without signing them, while still requiring that scripts downloaded from the internet are signed by a trusted publisher.

      Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
      
    ../../_images/uv_installation_windows.png

    Fig. 13 A screenshot of VS Code with uv installation commands entered into the terminal.#

  2. Close VS Code and open it again. Then, in the new terminal, run the following command to install Python.

    uv python install 3.13
    
    ../../_images/python_installation_uv.png

    Fig. 14 A screenshot of VS Code with Python installation commands entered into the terminal.#

    You can test that Python is installed correctly by running the following command

    uv run python --version
    

    You should see output similar to the following

    Python 3.13.xx
    
  3. In VS Code, open the folder for your ENGR 13300 course files by selecting File -> Open Folder… from the menu bar.

    Note

    Make sure you open a folder, and not just a single file inside that folder. This ensures that the virtual environment we are about to create will be stored inside this folder.

  4. Virtual environments ensure that each of your projects has its own dependencies, preventing conflicts between different projects. In your VS Code terminal, run the following commands to initialize the folder as a uv project and set up a Python virtual environment within it. If you see a pop-up asking if you want to activate the new virtual environment, click “Yes”.

    uv init
    uv sync
    
  5. To verify that the virtual environment is set up correctly, close your current terminal and open a new one. This should automatically activate your new virtual environment. Then, run the following command to test that the correct version of Python is being used.

    python --version
    

    You should see output similar to the following.

    Python 3.13.xx
    

    Note

    Note that we no longer need to type uv run python to use Python. The virtual environment we set up ensures that the correct Python version is used whenever we type python in this project folder.

Installing Python (the traditional way)#

Follow the steps below to install Python on your system.

  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. 15 A screenshot of the Python installation page in the Windows Store.#

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

  2. Download and install the latest release.

../../_images/python_installation_mac.png

Fig. 16 A screenshot of Python download page for Mac.#

../../_images/python_installation_mac_1.png

Fig. 17 A screenshot of Python installer download on Mac.#

../../_images/python_installation_mac_2.png

Fig. 18 A screenshot of Python installation application on Mac.#

MATLAB#

MATLAB is a proprietary high-level programming language and interactive environment bundled as a single application. It is commonly used in engineering, scientific research, and academia. Before you can start writing and running MATLAB programs, you will need to install it on your system. Follow the steps below to install MATLAB on your system.

Creating a MATLAB account#

  1. Open https://www.mathworks.com/academia/tah-portal/purdue-university-31484706.html

  2. Click on Sign in to get started

    ../../_images/matlab_create_account_steps.png

    Fig. 19 A screenshot of the sign-in page for creating a Purdue University licensed MATLAB account.#

  3. Create an account using your Purdue email. Make sure your password is different from the one you use to log in to mypurdue

    ../../_images/matlab_create_account_steps2.png

    Fig. 20 A screenshot of the account creation page for a Purdue University licensed MATLAB account.#

  4. Repeat 1 and 2. Then, sign in with your created account

  5. Choose your option:

    • Click on Open MATLAB Online to run MATLAB without any installation.

    • Click on Install MATLAB to run MATLAB on your local device.

    ../../_images/matlab_install_steps.png

    Fig. 21 A screenshot highlighting buttons to open MATLAB Online or install MATLAB.#

MATLAB Installation#

If you clicked on Install MATLAB in the previous step, you are ready to install.

  1. Click on the down arrow button to download MATLAB for Linux. Make sure that you are downloading R2025b version

    ../../_images/matlab_install_linux_steps.png

    Fig. 22 A screenshot of the MATLAB installer download page on Linux.#

  2. Follow the prompts to install MATLAB using your Purdue credentials. Use

    all the default settings until you get to the Options step where you should check the box to create symbolic links, and uncheck the box to “Improve MATLAB by sending user experience information to MathWorks”.

    ../../_images/matlab_install_steps2.png

    Fig. 23 A screenshot of the MATLAB installer wizard email entry page.#

    ../../_images/matlab_install_steps3.png

    Fig. 24 A screenshot of the MATLAB installer wizard license agreement page.#

    ../../_images/matlab_install_steps4.png

    Fig. 25 A screenshot of the MATLAB installation wizard products page.#

    ../../_images/matlab_install_linux_steps3.png

    Fig. 26 A screenshot of the MATLAB installation wizard options page.#

    ../../_images/matlab_install_linux_steps5.png

    Fig. 27 A screenshot of the MATLAB installation wizard confirmation page.#

  1. Click on the down arrow button to download MATLAB for Windows. Make sure that you are downloading R2025b version

    ../../_images/matlab_install_windows_steps.png

    Fig. 28 A screenshot of MATLAB installer download page on Windows.#

  2. Follow the prompts to install MATLAB using your Purdue credentials. Use all the default settings until you get to the Options step where you should check the box to create symbolic links, and uncheck the box to “Improve MATLAB by sending user experience information to MathWorks”.

    ../../_images/matlab_install_steps2.png

    Fig. 29 A screenshot of the MATLAB installer wizard email entry page.#

    ../../_images/matlab_install_steps3.png

    Fig. 30 A screenshot of the MATLAB installer wizard license agreement page.#

    ../../_images/matlab_install_windows_steps4.png

    Fig. 31 A screenshot of the MATLAB installer wizard destination page.#

    ../../_images/matlab_install_steps4.png

    Fig. 32 A screenshot of the MATLAB installation wizard products page.#

    ../../_images/matlab_install_steps5.png

    Fig. 33 A screenshot of the MATLAB installation wizard options page.#

    ../../_images/matlab_install_windows_steps5.png

    Fig. 34 A screenshot of the MATLAB installation wizard confirmation page.#

  1. Click on the down arrow button to download MATLAB for Intel Chip. Make sure that you are downloading R2025b version

    ../../_images/matlab_install_apple_intel_steps.png

    Fig. 35 A screenshot of the MATLAB installer wizard email entry page.#

  2. Follow the prompts to install MATLAB using your Purdue credentials. Use all the default settings until you get to the Options step where you should check the box to create symbolic links, and uncheck the box to “Improve MATLAB by sending user experience information to MathWorks”.

    ../../_images/matlab_install_steps2.png

    Fig. 36 A representation of MATLAB Installation process on Mac Silicon.#

    ../../_images/matlab_install_steps3.png

    Fig. 37 A screenshot of the MATLAB installer wizard license agreement page.#

    ../../_images/matlab_install_steps4.png

    Fig. 38 A screenshot of the MATLAB installation wizard products page.#

    ../../_images/matlab_install_steps5.png

    Fig. 39 A screenshot of the MATLAB installation wizard options page.#

    ../../_images/matlab_install_apple_silicon_steps6.png

    Fig. 40 A screenshot of the MATLAB installation wizard confirmation page.#

  1. For Apple Silicon chips, two installations are required: Amazon Corretto 11 and MATLAB.

  2. Change the current version to R2025b version. Click on Install Java Runtime and then click on Get Amazon Corretto 11.

    ../../_images/matlab_install_apple_silicon_steps.png

    Fig. 41 A screenshot of the MATLAB installer download page with the Install Java Runtime button highlighted.#

    ../../_images/matlab_install_apple_silicon_steps2.png

    Fig. 42 A screenshot of the Amazon Corretto 11 installer download page with the Get Amazon Corretto 11 button highlighted.#

  3. Install Amazon Corretto 11, using default settings

    ../../_images/matlab_install_apple_silicon_steps3.png

    Fig. 43 A screenshot of the Amazon Corretto 11 installer.#

  4. Go back to https://www.mathworks.com/downloads/

  5. Change the current version to R2025b version. Click on the down arrow button to download MATLAB for Apple Silicon.

    ../../_images/matlab_install_apple_silicon_steps4.png

    Fig. 44 A screenshot of the MATLAB installer download page with the Download for macOS(Apple silicon) button highlighted.#

    ../../_images/matlab_install_apple_silicon_steps5.png

    Fig. 45 A screenshot of finding the MATLAB Installation App on Mac Silicon.#

  6. Follow the prompts to install MATLAB using your Purdue credentials. Use all the default settings until you get to the Options step where you should check the box to create symbolic links, and uncheck the box to “Improve MATLAB by sending user experience information to MathWorks”.

    ../../_images/matlab_install_steps2.png

    Fig. 46 A screenshot of the MATLAB installer wizard email entry page.#

    ../../_images/matlab_install_steps3.png

    Fig. 47 A screenshot of the MATLAB installer wizard license agreement page.#

    ../../_images/matlab_install_steps4.png

    Fig. 48 A screenshot of the MATLAB installer wizard products page.#

    ../../_images/matlab_install_steps5.png

    Fig. 49 A screenshot of the MATLAB installer wizard options page.#

    ../../_images/matlab_install_apple_silicon_steps6.png

    Fig. 50 A screenshot of the MATLAB installer wizard confirmation page.#

GNU Octave#

Octave is a free computing platform compatible with MATLAB files, backed by the GNU Project. If you’re having trouble with the MATLAB install, or want to support open-source software, try Octave. You can learn more about the open-source philosophy here: https://www.gnu.org/philosophy/philosophy.html

Installing Octave#

To download Octave, visit https://octave.org/download and follow the instructions tailored for your operating system.

Once installed, you’ll have two core applications:

Octave-cli

This is the command-line interface. It functions as a terminal window where you execute commands. You must use an external text editor, such as VS Code, to write and save your script and function files before loading and running them in the terminal.

Octave-GUI

This is the Graphical User Interface, which provides a user-friendly environment similar to the MATLAB workspace. You can write, save, and execute your code directly within the application, making it easier for new users.

Using Octave Online#

A convenient, third-party web application is available at: https://octave-online.net/. While this online tool is slightly more limited in features compared to a local installation, it provides immediate access on any device with a browser and internet connection. It’s available for quick testing before you install the desktop version.