Sign inSign up

hunter/pythonscience

By hunter

•Updated almost 11 years ago

Python 2.7 w/ NumPy, Pandas, SciPy, Matplotlib and TkInter support

Image
2

10K+

hunter/pythonscience repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

346.8 MB

Last updated

almost 11 years ago

docker pull hunter/pythonscience