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:
1515 vmImage : ubuntu-16.04
1616
1717steps :
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
2521
22+ - script : |
2623 # Install Python, py.test, and required packages.
2724 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)
3227 python -m ipykernel install --user --name bayesian-modelling-tutorial
33- displayName : ' Install dependencies '
28+ displayName : ' Create environment, install correct Python, and activate kernel. '
3429
3530# Q: Does second script not recognize environment context from 1st script?
3631- script : |
37- source activate bayesian-modelling-tutorial
32+ conda activate bayesian-modelling-tutorial
3833 mkdir -p docs/notebooks
3934 jupyter nbconvert --config nbconvert_config.py --execute --template full
4035 pandoc README.md -o docs/index.html -c static/pandoc.css -s
You can’t perform that action at this time.
0 commit comments