Skip to content

henryiii/python-compiled-minicourse

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.