Computing for Engineers | ENGG1811 26T3

Setting up Anaconda

Anaconda is a software package which, among other things, installs Python and Spyder onto your computer. We recommend having it installed on on your own machine to follow along with programming tasks in lectures and for assignments and labs.

VLAB

On CSE lab computers, Spyder and Python come pre-installed. You can find Spyder in the application menu, under Development.

Spyder on VLAB

Windows

To install Anaconda on Windows, head to the Anaconda downloads page. Registration is mandatory to proceed, so click Get Started.

Anaconda Get Started popup

Click Sign Up with Email to create an account. You can use either your UNSW email or personal email.

Anaconda sign up with email prompt Anaconda sign up with email prompt with populated details

Click Sign Up with Email again. Anaconda will send you an email that contains a verification link. Click on it to verify your account.

Anaconda verify email screenshot with link

Once you do this, you will be asked for your personal details. Enter your first and last name, respond to the EULA prompt and then continue. You may skip any additional prompts by pressing Skip at the bottom right of each box.

Anaconda personal info prompt

Once you complete this, you will be directed to the downloads page. Download the Windows graphical distribution installer.

Anaconda Windows installer link

Find the installer file. It will most likely be in your Downloads folder, which you can find on the sidebar of the Windows file explorer. Alternatively, you can also find the file by opening the downloads page of your web browser.

Windows Explorer in Downloads folder with Anaconda installer highlighted

Double click on the installer and follow the installation instructions.

Anaconda installer window

Anaconda should now be installed! You can now open Anaconda by searching for Anaconda Navigator on the Start Menu. You can also directly open Spyder by searching for it. Alternatively, you can open the Start Menu and open the Anaconda3 (64-bit) folder, where you will also be able to find Spyder.

Anaconda Navigator on the Start Menu after searching Anaconda Navigator on the list of Start Menu programs

macOS

Anaconda no longer publishes installer packages for older Macs with Intel chips, meaning that Macs generally made before late 2020 will not be able to install the latest version of Anaconda. You can check your Mac's processor information by clicking the Apple icon on the top left, and then clicking About this Mac. If you have an Apple Silicon chip, you can continue following the guide as normal. If you have an Intel chip, you can visit the Anaconda archives to download the last Intel-supported installer, Anaconda3-2025.06-1-MacOSX-x86_64.pkg. You should then be able to continue following this guide from the installation steps.

To install Anaconda on macOS, head to the Anaconda downloads page. Registration is mandatory to proceed, so click Get Started.

Anaconda Get Started popup

Click Sign Up with Email to create an account. You can use either your UNSW email or personal email.

Anaconda sign up with email prompt Anaconda sign up with email prompt with populated details

Click Sign Up with Email again. Anaconda will send you an email that contains a verification link. Click on it to verify your account.

Anaconda verify email screenshot with link

Once you do this, you will be asked for your personal details. Enter your first and last name, respond to the EULA prompt and then continue. You may skip any additional prompts by pressing Skip at the bottom right of each box.

Anaconda personal info prompt

Once you complete this, you will be directed to the downloads page. Download the appropriate graphical macOS installer.

Anaconda macOS installer link

Find the installer file. It will most likely be in your Downloads folder, which you can find by opening Finder. Alternatively, you can also find the file by opening the downloads page of your web browser.

macOS Finder in Downloads folder with Anaconda installer highlighted

Double click on the installer and follow the installation instructions.

Anaconda installer window

Anaconda should now be installed! You can now open Anaconda by searching for Anaconda Navigator in Spotlight Search using Cmd + Space. Alternatively, you can open the Applications folder in Finder and double click Anaconda Navigator.

Anaconda Navigator in Spotlight Search Anaconda Navigator in the Applications folder

A Note on Kite

Spyder may ask whether you would like to install a package called Kite, which provides additional code auto-completion and suggestion services on top of the ones that already exist in Spyder. We recommend you to not install Kite as it can serve as a distraction for programmers who are just starting out.

Additional Help

If you run into an unexpected issue while installing Anaconda, you should ask your tutor for assistance in the first lab or ask on the course forum (or both). There will also be additional help sessions that run throughout the term which you can also get help in for anything course related.

While you are waiting for help, you can use Spyder on a CSE machine instead.

Opening, saving and naming files in Spyder

VLAB

A YouTube video is available if you prefer a visual tutorial.

Click the top left Applications Menu button. Find the Development section in the dropdown, and then click Spyder3.

Spyder on VLAB

Create a new file to save, or use the default temp.py file opened when Spyder starts by clicking File on the top menu bar, and then clicking Save as....

Save As button in Spyder on VLAB

Navigate to your folder by clicking your username (zID) folder on the left. Choose the folder you want to save in, or create a new folder. Name the file whatever you'd like, but try to choose an informative name. Once done, click save.

Windows

A YouTube video is available if you prefer a visual tutorial.

You can open Spyder either through Anaconda or directly from the Start Menu.

Type Spyder into the Start Menu search bar, or open the Anaconda3 (64-bit) folder to open Spyder. If you are opening Spyder via Anaconda Navigator, open Anaconda and then select Launch on the Spyder window.

Create a new file to save, or use the default temp.py file opened when Spyder starts by clicking File on the top menu bar, and then clicking Save as....

Save As button in Spyder on Windows

Navigate to a folder (for example, your Documents folder). Name the file whatever you'd like, but try to choose an informative name. Once done, click save.

Save dialog in Spyder on Windows

macOS

A YouTube video is available if you prefer a visual tutorial.

Open Spotlight Search with Cmd + Space. Type in Anaconda and open Anaconda Navigator. You can alternatively open Anaconda Navigator by double-clicking on it in the Applications folder.

Create a new file to save, or use the default temp.py file opened when Spyder starts by clicking File on the top menu bar, and then clicking Save as....

Save As button in Spyder on macOS

Navigate to a folder (for example, your Documents folder). Name the file whatever you'd like, but try to choose an informative name. Once done, click save.

Save dialog in Spyder on macOS

Running a Python program in Spyder

Open Spyder with a Python file of your choosing. If you don't have anything at the moment, write:

print("Hello World")

As some example code for now. Save the file, and then run the program by either:

  • Clicking the green play button on the Spyder toolbar,
  • Clicking Run on the top menu bar and then clicking Run on the dropdown, or
  • Pressing F5 on your keyboard.
Hello world Python snippet in Spyder Spyder with green Run triangle button highlighted

You should see Hello World printed out on the console.

Spyder console output

Downloading files

You will be provided with starter files when completing assignments and labs. Here's how you can download them.

Firefox on VLAB

A YouTube video is available if you prefer a visual tutorial.

  • Open the Web Browser (this is Firefox, but renamed) by clicking the Applications Menu on the top left.
  • Navigate to the website you wish to download files from.
  • Click on the link that downloads the file.
  • Click Save As on the popup.
  • Choose a directory to save the file in.
  • Open a file browser and navigate to your chosen directory. You will find your downloaded file there.

Chrome on Windows

  • Open Google Chrome.
  • Navigate to the website you wish to download files from.
  • Click on the link that downloads the file.
  • A bar with the name of the file downloaded will appear on the bottom of your browser.
  • Click the down arrow next to the file, and then click Show in Folder to open the directory it was downloaded to.

Safari on macOS

A YouTube video is available if you prefer a visual tutorial.

  • Open Safari.
  • Navigate to the website you wish to download files from.
  • Click on the link that downloads the file.
  • Open Finder, and then navigate to your Downloads folder. You will find your downloaded file there.

Creating a new folder

Using a file manager on VLAB

A YouTube video is available if you prefer a visual tutorial.

Double click on the Home icon. This will open a file manager.

VLAB home folder icon

Right click on an empty area, then click Create Folder from the dropdown.

VLAB file manager context menu

Name the folder, and then press Create.

VLAB file manager create folder popup

To rename the folder, right click the folder and press Rename.

VLAB file manager context menu with Rename selected

From a Save As prompt on VLAB

A YouTube video is available if you prefer a visual tutorial.

Navigate to the place where you would like to make a new folder. At the top right of the popup, click the Create Folder button.

Save file prompt from Spyder on VLAB

Name the folder, and then press Enter. This will place you inside the newly made folder. Note that you can see what folder you are in via the path, located to the left of the Create Folder button.

Save file prompt from Spyder in VLAB with path highlighted

Using File Explorer on Windows

A YouTube video is available if you prefer a visual tutorial.

Open File Explorer and navigate to the Documents folder. Right click on an empty space, hover over New in the dropdown and then click Folder. Name the folder, and then left click on an empty space. To rename the folder, right click the newly created folder and click Rename in the dropdown.

New Folder button in Windows context menu Rename button in Windows context menu

From a Save As prompt on Windows

A YouTube video is available if you prefer a visual tutorial.

In the popup, navigate to the place where you would like to make a new folder. Right click on an empty space, hover over New and then click Folder. Name the folder, and then left click on an empty space.

New Folder button in save file prompt from Spyder on Windows

Using Finder on macOS

A YouTube video is available if you prefer a visual tutorial.

Open Finder and navigate to Documents. Right click on an empty space and press New Folder from the dropdown.

New Folder button in Finder context menu

Name the folder, and then press Enter. To rename the folder, right click the folder and press Rename.

Rename button in Finder context menu

From a Save As prompt on macOS

A YouTube video is available if you prefer a visual tutorial.

In the popup window, click the New Folder button on the bottom left. Name the folder, and then click the Create button.

Rename button in save file prompt from Spyder on macOS

Moving files between directories

VLAB

A YouTube video is available if you prefer a visual tutorial.

Double click on Home on the desktop twice to open two windows. In one window, navigate to the folder the file you wish to move resides in. In another, navigate to the folder where you wish to move to. Then, drag the file from the source to its destination folder.

VLAB home folder icon VLAG drag from source graphic VLAB drag file to destination graphic

Windows

A YouTube video is available if you prefer a visual tutorial.

Open File Explorer and navigate to the directory where the file you want to move is located. Right click the File Explorer icon and click File Explorer from the dropdown to open a new File Explorer window. In the new window, navigate to the directory you wish to move the file to.

File Explorer with file circled in red

Drag the file from the directory it is in to the one you want to move it to.

File dragged to second File Explorer window

macOS

A YouTube video is available if you prefer a visual tutorial.

Open Finder and navigate to the directory where the file you want to move is located. Use either Cmd + T or right click on the Finder icon to create a new tab/window.

Finder with file highlighted

In the new Finder tab/window, navigate to the directory you wish to move the file to. Drag the file from the first directory to the second one.

File dragged to second Finder window

Unzipping .zip files

VLAB

Right click the link and select Save Link As to download the file.

Save Link As button selected in context menu

Save the file with your desired filename in the correct folder and click Save.

Save file prompt with name and save button highlighted

Go back to the desktop and then go to the folder where the file was saved.

Open Folder button selected in dock context menu

Select the ZIP and then click on Extract Here to unzip the file.

Extract Here button selected in file manager context menu

The contents of the ZIP will appear next to the ZIP file. You can now open the file from Spyder directly to view the contents.

Extracted ZIP contents shown next to ZIP file

Windows

Right click the link and select Save Link As to download the file.

Save Link As button selected in context menu

Save the file into your Downloads folder.

Save file prompt with save button highlighted

Select the Extract All option in the top bar to unzip the file.

Extract all button selected in File Explorer top bar

Choose where you would like your files to be saved on your computer.

Extract ZIP prompt with destination and extract button highlighted

You can now open the file from Spyder directly to view the contents.

Extracted ZIP contents shown next to ZIP file

macOS

Right click the link and select Save Link As to download the file.

Save Link As button selected in context menu

Navigate to your Downloads folder and hover over Open With, then click Archive Utility (default).

ZIP file selected with context menu entry open on Archive Utility

The contents of the ZIP will appear next to the ZIP file. You can now open the file from Spyder directly to view the contents.

Extracted ZIP contents shown next to ZIP file

Submitting an assignment

From VLAB

Open a file manager window by double-clicking on Home on the desktop and navigate to the folder where your assignment files are located. Right click on an empty space and select Open Terminal Here.

Open Terminal Here selected in file manager context menu

Copy and paste the submission command provided in your assignment specification. I will use the following as an example:

$ give en1811 ass01 has_tachy.py heart_rate_to_tachy_status.py find_episodes.py run_detection.py
Submission command typed inside terminal window

Read and respond to the prompts given. If your submission was successful, you will see the following:

Submission success graphic

From your own machine

Navigate to give's online web interface (linked in your assignment specification) and login with your zID and zPass. Make sure you have Assignments selected in the top left, then select the current session and use ENGG1811 as the course code to search.

Online submission page with ENGG1811 typed into course field

Select the assignment you wish to submit and then click Submit my Assignment. You will see a screen like this:

Online submission prompt

Click the Browse... button and select an assignment file. Click the Add File button to add more rows for more files.

Online submission prompt with files attached

Then, respond to the student declaration and submit. If your submission was successful, you will see the following:

Submission success page

Checking your UNSW email

You can use the website https://student.unsw.edu.au/email to check your email. Enter your username and password to login.

  • Your username on UNSW email systems is zID@ad.unsw.edu.au, i.e. z5555555@ad.unsw.edu.au.
  • Your password is your zPass.

Connecting to a CSE machine from home

You can find the written CSE taggi guide here. Alternatively, you can watch these pre-recorded videos:

Allowing screen sharing with a Mac on Blackboard Collaborate

If you are unable to select the Share Screen option within Blackboard Collaborate while using a Mac, it may be due to the privacy settings on your computer.

Open System Preferences and select Security and Privacy. On the following screen, select the Privacy tab at the top, then in the left-hand menu select Screen Recording.

macOS settings

Click the checkbox next to the application that you're using for Blackboard Collaborate (i.e. Google Chrome, Firefox, Safari, etc) and then restart the application. If you cannot click the checkbox, you may need to authorise yourself by clicking the padlock on the bottom left.

Screen Recording entry open with arrows pointing to browser