Home

Awesome

Mixing Compiled Code and Python

Princeton mini-course

By Henry Schreiner

Installation

Binder:

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

Adroit

See class.

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. Warning: Some part

Get the repository:

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

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

Run:

conda env create

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

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

And, to disable:

conda deactivate

or restart your terminal.

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

conda env update

Lessons

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