File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -15,26 +15,21 @@ pool:
15
15
vmImage : ubuntu-16.04
16
16
17
17
steps :
18
- - script : |
19
- wget $(miniconda.url) -O miniconda.sh
20
- bash miniconda.sh -b -p $HOME/anaconda
21
- export PATH="$HOME/anaconda/bin:$PATH"
22
- conda config --set always_yes yes --set changeps1 no
23
- conda update -q conda
24
- conda config --add channels conda-forge
18
+ # Add conda to PATH.
19
+ - bash : echo "##vso[task.prependpath]$CONDA/bin"
20
+ displayName : Add conda to PATH
25
21
22
+ - script : |
26
23
# Install Python, py.test, and required packages.
27
24
conda env create -f environment.yml
28
- source activate bayesian-modelling-tutorial
29
-
30
- which conda
31
- conda install python=$(python.version) jupyter pandoc
25
+ conda activate bayesian-modelling-tutorial
26
+ conda install python=$(python.version)
32
27
python -m ipykernel install --user --name bayesian-modelling-tutorial
33
- displayName : ' Install dependencies '
28
+ displayName : ' Create environment, install correct Python, and activate kernel. '
34
29
35
30
# Q: Does second script not recognize environment context from 1st script?
36
31
- script : |
37
- source activate bayesian-modelling-tutorial
32
+ conda activate bayesian-modelling-tutorial
38
33
mkdir -p docs/notebooks
39
34
jupyter nbconvert --config nbconvert_config.py --execute --template full
40
35
pandoc README.md -o docs/index.html -c static/pandoc.css -s
You can’t perform that action at this time.
0 commit comments