Python 2.7 image for Machine Learning
README in progress:
I used to use a VM for Python work, but recently decided it would be cooler if I could get everything working in Docker.
This is Python 2.7.9 with the following extras
What makes this image special is Python and Matplotlib are compiled with TkInter support so Matplotlib uses the correct backend to send graphs to $DISPLAY.
Install image from Docker Hub
docker pull hunter/pythonscience
Run container with local src volume
docker run -itv <abs path to local volume>:/data hunter/pythonscience bash
Run container with GUI support on OSX
brew install socat
brew cask install xquartz
open -a XQuartz
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
docker run -e DISPLAY=<docker host IP>:0 hunter/pythonscience bash