Computing at home.

Coding python on your own computer

Most of you will want to install on your personal computers the Canopy environment that we use in class. Below is information on how to do this. If you encounter problems with the installation process, please post on the cs111-fall15 Google Group, and the CS111 staff and your peers will do our best to help you out.

Here are some tips for installing Canopy on Macs (and below, for PCs)

Macintosh 10.9 Mavericks

  1. Go to http://www.enthought.com/products/canopy/
  2. Click “Get Canopy”
  3. Click the “For Academics” tab
  4. Click “Request licence”
  5. Create an account for yourself. When you have completed the process you will be able to:
  6. Click “You can now download Enthought Canopy”
  7. Be sure to scroll down past ‘Canopy Express’ to the Canopy Full Installer
  8. Click “Download Canopy-1.5.5, 64-bit for Mac OSX”
  9. WAIT for the download to complete
  10. Using the Finder: Go to your Downloads folder
  11. Double-click canopy1.5.5-full-osx.dmg
  12. When it’s done, you should be able to drag a canopy image to an image representing your applications folder. Do so.
  13. WAIT for it to finish.
  14. Now go to your applications folder and double-click Canopy (You will need to OK a warning about applications downloaded from the internet, and you will need to OK the location for your Canopy environment. Do so.)
  15. Say “Yes” to Canopy being your default Python environment.
  16. Click “Start using Canopy”
  17. Go to Preferences (under the Canopy menu) and select the Python tab.
  18. Set the Pylab backend to Inline(SVG) -- this is to enable graphics to work for you
  19. Select “Editor”. You should see two panes on the right hand side. The lower is your Python interactions pane.
  20. Write and run your first Python program: After the “In [1]:” prompt type ‘2+2’ and hit Enter If all is well you should see “Out[1]: 4”

Windows 8/8.1

Follow above instructions to step 7 and then start with the steps below:
  1. Make sure the tab is set to “Windows” and download canopy (link for 64-bit). Keep track of where it’s downloaded to. If you do not set anything, it should show up in your downloads folder.
  2. Let the download complete.
  3. Navigate to your downloads folder or wherever you saved your download.
  4. Double-click canopy-1.5.1-win-64.msi. A Setup Wizard should open.
  5. Click next through the Setup Wizard, agreeing to license terms as prompted, until Canopy is installing.
  6. Let the installation complete.
  7. Finish and allow Canopy to launch (“Launch Canopy when setup exits.”) (You will need to OK the location for your Canopy environment.)
  8. Say “Yes” to Canopy being your default Python environment and start.
  9. Log in using the credentials created in steps 1-7.
  10. In the bar up top, mouse over “Edit” and click on “Preferences.”
  11. In the window that opens, select the Python tab. Set the Pylab backend to Inline(SVG) -- this is to enable graphics to work for you. Close the window when you are done.
  12. Select “Editor”. You should see two panes on the right hand side. The lower is your Python interactions pane.
  13. Write and run your first Python program: After the “In [1]:” prompt type ‘2+2’ and hit Enter If all is well you should see “Out[1]: 4”