# Stop everything if one command fails
set -e

# Install the bash kernel
python -m bash_kernel.install

# Trust our notebook
jupyter trust demo/World\ population.ipynb

# Build jupyter lab to include the Jupytext extension
jupyter lab build

# Create the notebook for our jupytext demo
jupytext demo/get_started.md --to ipynb --update-metadata '{"jupytext":null}'

# Remove the markdown representation
# the demo starts with just the ipynb file
rm demo/get_started.md
