Search this site
Embedded Files
Jessica Leung
  • Home
    • Research
    • Teaching
      • Python Workshop for staff (Intensive)
      • Python Workshop for students (2020S1)
      • Python Installation for BA students
      • Using Gurobi with R and Python
Jessica Leung

Python Workshop for Staff (Intensive)

View the Project on GitHub

jessica-wyleung/python-workshop

Research

Teaching

Contact

Python Workshop for Staff (Intensive)
Python Installation
Installing Other Packages
Github Project: python-workshop

Python Installation

Python is a popular language for research computing, data science AND and general-purpose programming. We recommend using Anaconda, an all-in-one installer of python and many of it's most useful packages for scientific computing. Please make sure you install Python version 3.x (e.g., 3.6 is fine).

We will teach Python using the Jupyter notebook, a programming environment that runs in a web browser. For this to work you will need a reasonably up-to-date browser. The current versions of the Chrome, Safari and Firefox browsers are all supported (some older browsers, including Internet Explorer version 9 and below, are not).

Windows

  1. Open (https://www.anaconda.com/download/#windows) with your web browser.
  2. Download the Python 3 installer for Windows.
  3. Install Python 3 using all of the defaults for installation except make sure to check Add Anaconda to my PATH environment variable.

macOS

  1. Open (https://www.anaconda.com/download/#macos) with your web browser.
  2. Download the Python 3 installer for OS X.
  3. Install Python 3 using all of the defaults for installation.

Installing Other Packages

Conda is an open source package management system and environment management system that runs on Windows, macOS and Linux. Conda quickly installs, runs and updates packages and their dependencies. Conda easily creates, saves, loads and switches between environments on your local computer.

We will use conda to install an additional package, cvxpy, that we'll need to work with in this workshop.

Windows

  1. Open the Anaconda prompt
  2. Copy/paste the following command into the prompt and press Enter: conda install -c cvxpy
  3. When you see Proceed ([y]/n)?, type y and press Enter.

macOS

  1. Open a terminal window (Find the "Terminal" app in you Applications).
  2. Copy/paste the following command into the terminal and press Return: conda install -c cvxpy
  3. When you see Proceed ([y]/n)?, type y and press Return.

Github Project: python-workshop


jessica-wyleung/python-workshop

You can download the all the Jupyter notebooks and files we need for the workshop from Github.

These workshop materials are of three parts:

  • Introduction to Python (Basics, Numpy and Pandas)
  • Regression and Visualisation (sklearn and statsmodel)
  • Basic Optimisation (using `scipy`, `cvxpy`, and `gurobi` (optional))

If you encounter any errors with either of the above commands, please let us know via email at jessica.leung@sydney.edu.au

Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse