Public Repository

Last pushed: 2 years ago
Short Description
Python 2.7 w/ NumPy, Pandas, SciPy, Matplotlib and TkInter support
Full Description

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

  • IPython
  • NumPy
  • Pandas
  • SciPy
  • Matplotlib

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

first time

brew install socat
brew cask install xquartz

every time

open -a XQuartz
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
docker run -e DISPLAY=<docker host IP>:0 hunter/pythonscience bash

Docker Pull Command