Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ RUN apt-get install -y libfreetype6-dev && \
RUN pip install ibis-framework && \
pip install mxnet && \
pip install gluonnlp && \
pip install gluoncv && \
pip install gluoncv && \
/tmp/clean-layer.sh

# scikit-learn dependencies
Expand Down Expand Up @@ -375,7 +375,7 @@ RUN pip install bcolz && \
pip install allennlp && \
# b/149359379 remove once allennlp 1.0 is released which won't cause a spacy downgrade.
pip install spacy==2.2.3 && python -m spacy download en && python -m spacy download en_core_web_lg && \
apt-get install -y ffmpeg && \
apt-get install -y ffmpeg && \
/tmp/clean-layer.sh

###########
Expand Down Expand Up @@ -408,7 +408,8 @@ RUN pip install flashtext && \
pip install tensorflow_hub && \
pip install jieba && \
pip install git+https://github.com/SauceCat/PDPbox && \
pip install ggplot && \
# ggplot is broken and main repo does not merge and release https://github.com/yhat/ggpy/pull/668
pip install https://github.com/hbasria/ggpy/archive/0.11.5.zip && \
pip install cesium && \
pip install rgf_python && \
# b/145404107: latest version force specific version of numpy and torch.
Expand Down
12 changes: 12 additions & 0 deletions tests/test_ggplot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import unittest
import os.path

from ggplot import *

class TestGgplot(unittest.TestCase):

def test_plot(self):
p = ggplot(aes(x='mpg'), data=mtcars) + geom_histogram()
p.save("myplot.png")

self.assertTrue(os.path.isfile("myplot.png"))