# Stop everything if one command fails
set -e

# Install from sources
pip install .[all]

# Open .md notebooks with the Notebook editor
mkdir -p ${HOME}/.jupyter/labconfig
cp binder/labconfig/* ${HOME}/.jupyter/labconfig

# Install a kernel called itables
python -m ipykernel install --name itables --user

# Use that kernel for the documentation notebooks
jupytext docs/*.md --set-kernel itables
jupytext README.md --set-kernel itables
