From 1eba565d5c033cb82ea7635b528ad3bdc7615e08 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Mon, 6 May 2019 12:03:22 +0200 Subject: [PATCH] Added files for binder service --- README.md | 4 ++-- binder/apt.txt | 3 +++ binder/environment.yml | 35 +++++++++++++++++++++++++++++++++++ binder/start | 5 +++++ 4 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 binder/apt.txt create mode 100644 binder/environment.yml create mode 100755 binder/start diff --git a/README.md b/README.md index a099505bb..c7cae61db 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ pystencils ========== [](https://i10git.cs.fau.de/pycodegen/pystencils/commits/master) -[](https://i10git.cs.fau.de/pycodegen/pystencils/commits/master) -[coverage report](http://pycodegen.pages.walberla.net/pystencils/coverage_report) +[](http://pycodegen.pages.walberla.net/pystencils/coverage_report) +[](https://mybinder.org/v2/gh/mabau/pystencils/master?urlpath=doc%2Fnotebooks) Run blazingly fast stencil codes on numpy arrays. diff --git a/binder/apt.txt b/binder/apt.txt new file mode 100644 index 000000000..b6243b5e6 --- /dev/null +++ b/binder/apt.txt @@ -0,0 +1,3 @@ +build-essential +graphviz +ffmpeg diff --git a/binder/environment.yml b/binder/environment.yml new file mode 100644 index 000000000..8ba6b6669 --- /dev/null +++ b/binder/environment.yml @@ -0,0 +1,35 @@ + +# ---------------------------------------------------------------------------------------------------------------------- +# Environment with all dependencies to use pystencils +# +# +# Download conda at https://conda.io/miniconda.html and create this environment by running: +# conda env create -f conda_environment_user.yml +# . activate pystencils +# +# If you have CUDA installed and want to use your GPU, uncomment the last line to install pycuda +# +# ---------------------------------------------------------------------------------------------------------------------- + +name: pystencils +dependencies: + # Basic dependencies: + - python >= 3.6 + - numpy + - sympy >= 1.1 + - appdirs # to find default cache directory on each platform + - joblib # caching on hard-disk, this is optional, but if not installed lbmpy is really slow + - cython # speed up boundary list computation (optional) + - matplotlib + - imageio + - pandas + - scipy + - pip + - pip: + - islpy # used to optimize staggered kernels + - py-cpuinfo # get cpu info like cache sizes, supported vector instruction sets, ... + - graphviz # can show abstract syntax trees as formatted graphs + - ipy_table # HTML tables for jupyter notebooks + - pyevtk # VTK output for serial simulations + - blitzdb # file-based No-SQL database to store simulation results + #- pycuda # add this if you have CUDA installed diff --git a/binder/start b/binder/start new file mode 100755 index 000000000..658270a38 --- /dev/null +++ b/binder/start @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 setup.py develop + +exec "$@" \ No newline at end of file -- GitLab