Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sfwatergit
Flatland
Commits
bcb63749
Commit
bcb63749
authored
5 years ago
by
u214892
Browse files
Options
Downloads
Patches
Plain Diff
#97 tox-conda #94 use miniconda instead of anaconda
parent
884f53fe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
getting_started/getting_started.bat
+3
-3
3 additions, 3 deletions
getting_started/getting_started.bat
getting_started/getting_started.sh
+2
-2
2 additions, 2 deletions
getting_started/getting_started.sh
tox.ini
+9
-5
9 additions, 5 deletions
tox.ini
with
14 additions
and
10 deletions
getting_started/getting_started.bat
+
3
−
3
View file @
bcb63749
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
getting_started/getting_started.sh
+
2
−
2
View file @
bcb63749
...
...
@@ -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 &
This diff is collapsed.
Click to expand it.
tox.ini
+
9
−
5
View file @
bcb63749
...
...
@@ -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]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment