Skip to content

Instantly share code, notes, and snippets.

View rlizzo's full-sized avatar

Rick Izzo rlizzo

  • NVIDIA
  • Morristown, NJ
  • 01:28 (UTC -04:00)
  • LinkedIn in/rlizzo
View GitHub Profile
@rlizzo
rlizzo / build_simpleitk_anaconda.md
Created October 24, 2017 09:05 — forked from somada141/build_simpleitk_anaconda.md
Build SimpleITK against Anaconda Python on OSX #python #anaconda #conda #simpleitk #itk #build #source #cmake #osx

The following process shows how one would build SimpleITK (from source) to link against and work with the Anaconda Python environment on Mac OSX.

The majority of this process can be applied to other non-vanilla Python interpreters such as Enthought Canopy and Enthough Python Distribution (EPD). This process has also been tried on Windows 7 with Canopy.

Here's how one would go about building SimpleITK against their Anaconda Python:

  • Activate your preferred conda environment. I will assume its called py27 but be careful to amend appropriately and activate through source activate <environment_name>
  • Go to this link: http://www.itk.org/Wiki/SimpleITK/GettingStarted#Build_It_Yourself and take a look at the instructions for building SimpleITK first.
  • Make sure you have CMake installed (I used the 2.8.12 version while writing this but you may want to opt for the newest CMake version first).
  • Make sure you have
@rlizzo
rlizzo / scheduler.py
Created October 4, 2017 03:42 — forked from sebgoa/scheduler.py
A random toy kubernetes scheduler in python
#!/usr/bin/env python
import time
import random
import json
from kubernetes import client, config, watch
config.load_kube_config()
v1=client.CoreV1Api()