Skip to content
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

MNT: Add symbolic link to environment.yml for user clarity #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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 binder/environment.yml
conda env create -f 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 binder/environment.yml
# conda env create -f 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 binder/environment.yml
conda env create -f 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 binder/environment.yml
conda env create -f environment.yml
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 .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ARG USER_GID=$USER_UID

# Copy environment.yml (if found) to a temp locaition so we update the environment. Also
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
COPY binder/environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
COPY environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/

# Configure apt and install packages
RUN apt-get update \
Expand Down
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 binder/environment.yml
- conda env create -f environment.yml
- source activate bayesian-modelling-tutorial
# This guarantees that the Python version is matrixed.
- conda install python=$PYTHON_VERSION
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM continuumio/miniconda3
RUN apt-get install build-essential -y

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

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ to **install all the necessary packages**
from the provided `environment.yml` file.

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

To **activate the environment**, use the `conda activate` command.
Expand All @@ -72,7 +72,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 binder/environment.yml
conda env update -f environment.yml
```

### 3b. `pip` users
Expand All @@ -93,7 +93,7 @@ If you don't want to mess around with dev-ops, click the following badge to get

### 4a. Open your Jupyter notebook

1. You will have to install a new IPython kernelspec if you created a new conda environment with `binder/environment.yml`.
1. You will have to install a new IPython kernelspec if you created a new conda environment with `environment.yml`.

python -m ipykernel install --user --name bayesian-modelling-tutorial --display-name "Python (bayesian-modelling-tutorial)"

Expand Down
1 change: 1 addition & 0 deletions environment.yml