-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
56 lines (43 loc) · 1.6 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM jupyter/scipy-notebook
MAINTAINER Sebastian Riedel <sebastian.riedel@gmail.com>
USER root
RUN apt-get update -q && \
apt-get install -qy \
texlive-xetex \
imagemagick \
wkhtmltopdf
RUN jupyter-nbextension install https://bitbucket.org/ipre/calico/downloads/calico-spell-check-1.0.zip
USER $NB_USER
RUN conda install --quiet --yes \
-c jacksongs -c damianavila82 -c anaconda -c auto -c conda-forge \
mpld3=0.3 \
graphviz=2.40.1 \
python-graphviz=0.14 \
tensorflow \
rise && \
conda clean -tipsy
RUN pip install --upgrade pdfkit
RUN pip install \
graphviz==0.4.10 \
git+git://github.com/robjstan/tikzmagic.git \
git+https://github.com/uclmr/egal.git@v0.2.1 \
hide_code \
python-crfsuite
# Install hide_code extension:
# - original not Python3 - git clone https://github.com/kirbs-/hide_code && \
#RUN mkdir -p /home/jovyan/src/git && \
# cd /home/jovyan/src/git && \
# git clone https://github.com/kirbs-/hide_code && \
# cd /home/jovyan/src/git/hide_code && \
# python3 setup.py install
RUN jupyter-nbextension install rise --py --sys-prefix && \
jupyter-nbextension install egal --py --sys-prefix && \
jupyter nbextension install hide_code --py --sys-prefix
RUN jupyter-nbextension enable rise --py --sys-prefix && \
jupyter-nbextension enable calico-spell-check --sys-prefix && \
jupyter-nbextension enable egal --py --sys-prefix && \
jupyter-nbextension enable hide_code --py --sys-prefix && \
jupyter-serverextension enable hide_code --py --sys-prefix
# Customisation
COPY .jupyter $HOME/
WORKDIR /home/jovyan/work