-
Notifications
You must be signed in to change notification settings - Fork 187
/
.gitpod.yml
31 lines (30 loc) · 1.78 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
tasks:
- name: requirements
init: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential cmake ffmpeg libboost-all-dev libfftw3-dev libgsl-dev libpython3-dev openmpi-common
pip install --no-cache cython numpy scipy matplotlib pint tqdm --constraint requirements.txt
pip install --no-cache nbformat notebook jupyterlab 'jupyter_contrib_nbextensions==0.5.1'
jupyter contrib nbextension install --user
jupyter nbextension enable rubberband/main
jupyter nbextension enable exercise2/main
mkdir -p ~/.jupyter/lab/user-settings/\@jupyterlab/docmanager-extension
mkdir -p ${GITPOD_REPO_ROOT}/.vscode
echo '{"nbext_hide_incompat": false}' > ~/.jupyter/nbconfig/common.json
echo '{"defaultViewers": {"markdown": "Markdown Preview"}}' > ~/.jupyter/lab/user-settings/\@jupyterlab/docmanager-extension/plugin.jupyterlab-settings
echo '{"python.defaultInterpreterPath": "build/pypresso"}' > ${GITPOD_REPO_ROOT}/.vscode/settings.json
echo 'export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}${GITPOD_REPO_ROOT}/build/pypresso"' >> ~/.bashrc
command: |
mkdir build
cd build
cmake .. -D ESPRESSO_BUILD_WITH_GSL=ON -D ESPRESSO_BUILD_WITH_WALBERLA=ON
make
make tutorials
for f in doc/tutorials/*/*.ipynb; do echo "configuring ${f}"; ./pypresso doc/tutorials/convert.py exercise2 --to-vscode-jupyter ${f}; done
sed -i 's/espressomd.lb.LBFluidWalberlaGPU/espressomd.lb.LBFluidWalberla/; s/, \\"CUDA\\"\]/]/;' doc/tutorials/lattice_boltzmann/lattice_boltzmann_poiseuille_flow.ipynb doc/tutorials/active_matter/active_matter.ipynb
vscode:
extensions:
- ms-python.python
- ms-toolsai.jupyter
- ms-toolsai.jupyter-keymap
- ms-toolsai.jupyter-renderers