Skip to content

Use binder directory for configuration files #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 15, 2020
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
2 changes: 1 addition & 1 deletion .azure-pipelines/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ steps:

- script: |
# Install Python, py.test, and required packages.
conda env create -f environment.yml
conda env create -f binder/environment.yml
source activate bayesian-modelling-tutorial
conda install -y python=$(python.version)
python -m ipykernel install --user --name bayesian-modelling-tutorial
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steps:

# - script: |
# # Install Python, py.test, and required packages.
# conda env create -f environment.yml
# conda env create -f binder/environment.yml
# source activate bayesian-modelling-tutorial
# conda install -y python=$(python.version)
# python -m ipykernel install --user --name bayesian-modelling-tutorial
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/templates/setup-script-nix.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:
- script: |
conda env create -f environment.yml
conda env create -f binder/environment.yml
source activate bayesian-modelling-tutorial
conda install -y python=$(python.version)
python -m ipykernel install --user --name bayesian-modelling-tutorial
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/templates/setup-script-win.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:
- script: |
conda env create -f environment.yml
conda env create -f binder/environment.yml
activate bayesian-modelling-tutorial
conda install -y python=$(python.version)
python -m ipykernel install --user --name bayesian-modelling-tutorial
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ install:
- conda info -a

# Install Python, py.test, and required packages.
- conda env create -f environment.yml
- conda env create -f binder/environment.yml
- source activate bayesian-modelling-tutorial
# This guarantees that the Python version is matrixed.
- conda install python=$PYTHON_VERSION
Expand Down
12 changes: 1 addition & 11 deletions utils/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
##### INSTRUCTIONS TO USE #####
# Move this file
# and the .dockerignore file
# to the base directory of the repo
# before using Docker to build the container.
# This file was moved into `utils/`
# because it was overriding the original
# conda environment-based build using `environment.yml`.
##### END INSTRUCTIONS #####

# Base image: miniconda3
FROM continuumio/miniconda3

# Install GCC for Theano
RUN apt-get install build-essential -y

# Install environment
COPY ./environment.yml /environment.yml
COPY ./binder/environment.yml /environment.yml
RUN conda env create -f /environment.yml
RUN rm /environment.yml

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)

# bayesian-stats-modelling-tutorial

Expand Down Expand Up @@ -41,7 +41,7 @@ to **install all the necessary packages**
from the provided `environment.yml` file.

```bash
conda env create -f environment.yml
conda env create -f binder/environment.yml
```

To **activate the environment**, use the `conda activate` command.
Expand All @@ -59,7 +59,7 @@ source activate bayesian-modelling-tutorial
To **update the environment** based on the `environment.yml` specification file, use the `conda update` command.

```bash
conda env update -f environment.yml
conda env update -f binder/environment.yml
```

### 3b. `pip` users
Expand All @@ -75,7 +75,7 @@ pip install networkx scipy ...

If you don't want to mess around with dev-ops, click the following badge to get a Binder session on which you can compute and write code.

[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)


### 4a. Open your Jupyter notebook
Expand Down
File renamed without changes.