Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0149f46

Browse files
authored
Make docker container for tutorial (#80)
* got docker container working * fixed notebook execution issue * ignoring built docs locally
1 parent f7572fa commit 0149f46

File tree

5 files changed

+121
-91
lines changed

5 files changed

+121
-91
lines changed

‎.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.dockerignore
2+
Dockerfile

‎.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Custom
2+
docs/*
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

‎Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Base image: miniconda3
2+
FROM continuumio/miniconda3
3+
4+
# Install GCC for Theano
5+
RUN apt-get install build-essential -y
6+
7+
# Install environment
8+
COPY ./environment.yml /environment.yml
9+
RUN conda env create -f /environment.yml
10+
RUN rm /environment.yml
11+
12+
ENV PATH /opt/conda/envs/bayesian-modelling-tutorial/bin:$PATH
13+
# For debugging purposes during environment build
14+
RUN conda list -n bayesian-modelling-tutorial
15+
16+
# Install jupyterlab extensions
17+
RUN jupyter labextension install @pyviz/jupyterlab_pyviz
18+
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
19+
20+
# Copy contents of repository to Dockerfile
21+
COPY . /root/bayes
22+
WORKDIR /root/bayes
23+
24+
# Create Jupyter kernel to match notebooks
25+
RUN python -m ipykernel install --user --name bayesian-stats-modelling-tutorial
26+
27+
# Entry point is Jupyter lab
28+
ENTRYPOINT jupyter lab --port 8999 --ip="*" --allow-root --no-browser

‎environment.yml

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,35 @@ name: bayesian-modelling-tutorial
22
channels:
33
- conda-forge
44
- defaults
5+
- anaconda
56
- ericmjl
67
dependencies:
78
- python=3.7
8-
- jupyter
9-
- pymc3
10-
- pip
11-
- seaborn
12-
- matplotlib
13-
- numpy>=1.16
14-
- scipy
15-
- pandas
16-
- jupyterlab
17-
- tqdm
18-
- missingno
19-
- scikit-learn
20-
- cython
21-
- nodejs
22-
- pyjanitor
23-
- xarray
24-
- pandoc
25-
- black
26-
- nbstripout
27-
- pylint
28-
- arviz
29-
- theano>=1.0.4
30-
- ipykernel
31-
- hvplot
32-
- bokeh
33-
- holoviews
9+
- jupyter=1.0.0
10+
- pymc3=3.7
11+
- pip=19.2.3
12+
- seaborn=0.9.0
13+
- matplotlib=3.1.1
14+
- numpy=1.16.4
15+
- scipy=1.3.1
16+
- pandas=0.25.1
17+
- jupyterlab=1.0.9
18+
- tqdm=4.35.0
19+
- missingno=0.4.2
20+
- scikit-learn=0.21.3
21+
- cython=0.29.13
22+
- nodejs=12.8.1
23+
- pyjanitor=0.18.1
24+
- xarray=0.12.3
25+
- pandoc=2.7.3
26+
- black=19.3b0
27+
- nbstripout=0.3.6
28+
- pylint=2.3.1
29+
- arviz=0.4.1
30+
- theano=1.0.4
31+
- ipykernel=5.1.2
32+
- hvplot=0.4.0
33+
- bokeh=1.3.4
34+
- holoviews=1.12.5
35+
- mkl=2019.4
36+
- mkl-service=2.2.0

‎notebooks/04-instructor-finches.ipynb

Lines changed: 59 additions & 65 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /