Skip to content

Instantly share code, notes, and snippets.

@pocari
Last active December 10, 2016 16:07
Show Gist options
  • Save pocari/f5cf95403cec556cd15d729a08b674cc to your computer and use it in GitHub Desktop.
Save pocari/f5cf95403cec556cd15d729a08b674cc to your computer and use it in GitHub Desktop.
「ゼロから作るDeep Learning」の環境をDockerで作る ref: http://qiita.com/pocari/items/5595c179d23df59bee60
FROM python:3.5.2
WORKDIR /var/python
RUN pip install \
ipython \
numpy \
matplotlib
CMD ["ipython"]
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(-3, 3, 0.1)
y = np.sin(x)
plt.plot(x, y)
plt.show()
cd samples/book-sample/ch07
python apply_filter.py
brew install socat
brew install caskroom/cask/brew-cask
brew cask install xquartz
docker build -t python-dl .
ifconfig en0 | grep -v inet6 | grep inet | awk '{print $2 ":0"}'`
docker run --rm -it -e DISPLAY=$(ifconfig en0 | grep -v inet6 | grep inet | awk '{print $2 ":0"}') -v $(pwd):/var/python python-dl bash
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(-3, 3, 0.1)
y = np.sin(x)
plt.plot(x, y)
plt.show()
python samples/sample01.py
git clone https://github.com/pocari/python-dl-docker
git submodule update -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment