Skip to content
Snippets Groups Projects
Commit bcb63749 authored by u214892's avatar u214892
Browse files

#97 tox-conda #94 use miniconda instead of anaconda

parent 884f53fe
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,9 @@ set FLATLAND_BASEDIR=%~dp0\..
cd %FLATLAND_BASEDIR%
conda install -c conda-forge tox-conda || goto :error
conda install tox || goto :error
tox -v -e start_jupyter --recreate || goto :error
call conda install -y -c conda-forge tox-conda || goto :error
call conda install -y tox || goto :error
call tox -v -e start_jupyter --recreate || goto :error
goto :EOF
......
......@@ -8,6 +8,6 @@ FLATLAND_BASEDIR=$(dirname "$0")/..
FLATLAND_BASEDIR=$(realpath "$FLATLAND_BASEDIR")
cd ${FLATLAND_BASEDIR}
conda install -c conda-forge tox-conda
conda install tox
conda install -y -c conda-forge tox-conda
conda install -y tox
tox -v -e start_jupyter &
......@@ -148,11 +148,10 @@ conda_channels :
; run tests from subfolder to ensure that resources are accessed via resources and not via relative paths
changedir = {envtmpdir}/6f59bc68108c3895b1828abdd04b9a06
commands =
; run tests from subfolder to ensure that resources are accessed via resources and not via relative paths
sh -c 'jupyter nbextension install --py --sys-prefix widgetsnbextension'
sh -c 'jupyter nbextension enable --py --sys-prefix widgetsnbextension'
sh -c 'jupyter nbextension install --py --sys-prefix jpy_canvas'
sh -c 'jupyter nbextension enable --py --sys-prefix jpy_canvas'
jupyter nbextension install --py --sys-prefix widgetsnbextension
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension install --py --sys-prefix jpy_canvas
jupyter nbextension enable --py --sys-prefix jpy_canvas
; https://stackoverflow.com/questions/35545402/how-to-run-an-ipynb-jupyter-notebook-from-terminal/35545463
sh -c 'ls {toxinidir}/notebooks/*.ipynb | xargs -n 1 jupyter nbconvert --to python'
sh -c 'ls {toxinidir}/notebooks/*.py | xargs -I{} -n 1 sh -c "echo -e \"\n====== Running {} ========\n\"; ipython {}"'
......@@ -178,7 +177,12 @@ conda_deps =
conda_channels :
conda-forge
anaconda
changedir = {envtmpdir}/toxinidir
commands =
jupyter nbextension install --py --sys-prefix widgetsnbextension
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension install --py --sys-prefix jpy_canvas
jupyter nbextension enable --py --sys-prefix jpy_canvas
jupyter notebook
[testenv]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment