GitHub - henryiii/python-performance-minicourse: Mini-course at Princeton on High Performance Python (original) (raw)

High Performance Python

Princeton mini-course

By Henry Schreiner, with Jim Pivarski

Installation

Binder

In the minicourse, if you haven't prepared beforehand, please use this link to run online via Binder: Binder

Codespaces

GitHub provides 120 core-hours (60 real-time hours if you use the smallest (2-core) setting) of CodeSpaces usage every month. You can run this in a codespace: Open in GitHub Codespaces

Note that you should currently start jupyter lab manually from the VSCode terminal once it's built (3-5 minutes after starting it for the first time).

Local install:

If you are reading this at least 10 minutes before the course starts or you have anaconda or miniconda installed, you will probably be best off installing miniconda. This way you will keep local edits and will have an environment to play with.

Get the repository:

git clone https://github.com/henryiii/python-performance-minicourse.git cd python-performance-minicourse

Download and installminiconda. On macOS with homebrew, just run brew cask install miniconda (see my recommendations).

Run:

from this directory. This will create an environment performance-minicourse. To use:

conda activate performance-minicourse ./check.py # Check to see if you've installed this correctly jupyter lab

And, to disable:

or restart your terminal.

If you want to add a package, modify environment.yml then run:

Lessons

Class participants: please complete the survey that will be posted.